moby/distribution
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
..
fixtures/validate_manifest Add distribution package 2015-11-24 09:40:24 -08:00
metadata goimports: fix imports 2019-09-18 12:56:54 +02:00
utils Add canonical import comment 2018-02-05 16:51:57 -05:00
xfer Adding ability to change max download attempts 2019-09-19 13:51:40 +02:00
config.go Add variant to image.Image and legacy builder 2019-09-24 22:18:16 +00:00
errors.go goimports: fix imports 2019-09-18 12:56:54 +02:00
errors_test.go goimports: fix imports 2019-09-18 12:56:54 +02:00
oci.go Update containerd client to 1.2.4 2019-02-14 04:47:27 +01:00
pull.go goimports: fix imports 2019-09-18 12:56:54 +02:00
pull_v2.go Use io.SeekStart instead of os.SEEK_SET 2019-09-18 12:57:31 +02:00
pull_v2_test.go Remove unused functions, variables, fields 2019-09-18 12:57:12 +02:00
pull_v2_unix.go Improve 'no matching manifest' error 2019-01-15 18:24:15 +01:00
pull_v2_windows.go Use io.SeekStart instead of os.SEEK_SET 2019-09-18 12:57:31 +02:00
push.go Remove v1 manifest code 2019-06-18 01:40:25 +00:00
push_v2.go goimports: fix imports 2019-09-18 12:56:54 +02:00
push_v2_test.go goimports: fix imports 2019-09-18 12:56:54 +02:00
registry.go Fix base.Dial is deprecated: Use DialContext instead 2019-09-20 10:42:13 +08:00
registry_unit_test.go distribution: fix passing platform struct to puller 2018-06-27 14:59:31 -07:00