1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/builder
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
..
builder-next builder-next: explicitely ignore unhandled errors (errcheck) 2019-09-18 12:57:47 +02:00
dockerfile Add variant to image.Image and legacy builder 2019-09-24 22:18:16 +00:00
dockerignore Add canonical import comment 2018-02-05 16:51:57 -05:00
fscache structcheck: nolint for false positives 2019-09-18 12:57:44 +02:00
remotecontext gosec: add ignore comments for reported issues that can be ignored 2019-09-18 12:57:43 +02:00
builder.go Windows: (WCOW) Generate OCI spec that remote runtime can escape 2019-03-12 18:41:55 -07:00