moby/image
Paweł Gronowski ed2f5d1d85
c8d/builder: Don't drop fields from created image
Previous image created a new partially filled image.
This caused child images to lose their parent's layers.

Instead of creating a new object and trying to replace its fields, just
clone the original passed image and change its ID to the manifest
digest.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
(cherry picked from commit 01214bafd2)
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2023-08-24 12:47:56 +02:00
..
cache Add canonical import comment 2018-02-05 16:51:57 -05:00
spec docs: fix JSON format error 2023-02-03 08:16:48 +00:00
tarexport image: deprecate IDFromDigest() 2023-01-01 12:33:00 +01:00
v1 Remove unused image/v1 code 2022-05-10 23:45:03 +02:00
fs.go Remove uses of deprecated go-digest.NewDigestFromHex, go-digest.Digest.Hex 2022-11-08 16:42:13 +01:00
fs_test.go Remove uses of deprecated go-digest.NewDigestFromHex, go-digest.Digest.Hex 2022-11-08 16:42:13 +01:00
image.go c8d/builder: Don't drop fields from created image 2023-08-24 12:47:56 +02:00
image_test.go Fix spurious error from "docker load" 2021-01-21 22:04:23 +00:00
rootfs.go image: do actual RootFS.DiffIDs copying in Clone() 2019-03-18 01:05:40 +03:00
store.go use errors.Is() to handle image store errors 2023-01-02 09:41:50 +01:00
store_test.go image/store: Use errdefs for errors 2022-12-08 17:17:07 +01:00