moby/image
Chris Price c21a3cf432 Add variant to image.Image and legacy builder
This commit adds the image variant to the image.(Image) type and
updates related functionality. Images built from another will
inherit the OS, architecture and variant.

Note that if a base image does not specify an architecture, the
local machine's architecture is used for inherited images. On the
other hand, the variant is set equal to the parent image's variant,
even when the parent image's variant is unset.

The legacy builder is also updated to allow the user to specify
a '--platform' argument on the command line when creating an image
FROM scratch. A complete platform specification, including variant,
is supported. The built image will include the variant, as will any
derived images.

Signed-off-by: Chris Price <chris.price@docker.com>
2019-09-24 22:18:16 +00:00
..
cache Add canonical import comment 2018-02-05 16:51:57 -05:00
spec delete unnecessary blank lines 2018-12-11 09:07:37 +08:00
tarexport goimports: fix imports 2019-09-18 12:56:54 +02:00
v1 goimports: fix imports 2019-09-18 12:56:54 +02:00
fs.go goimports: fix imports 2019-09-18 12:56:54 +02:00
fs_test.go unconvert: remove unnescessary conversions 2019-09-18 12:57:33 +02:00
image.go Add variant to image.Image and legacy builder 2019-09-24 22:18:16 +00:00
image_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
rootfs.go image: do actual RootFS.DiffIDs copying in Clone() 2019-03-18 01:05:40 +03:00
store.go goimports: fix imports 2019-09-18 12:56:54 +02:00
store_test.go unconvert: remove unnescessary conversions 2019-09-18 12:57:33 +02:00