1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/types
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
..
backend
blkiodev
container goimports: fix imports 2019-09-18 12:56:54 +02:00
events
filters TestWalkValues: add missing error-check (errcheck) 2019-09-18 12:57:45 +02:00
image
mount
network
plugins/logdriver
registry goimports: fix imports 2019-09-18 12:56:54 +02:00
strslice
swarm Merge pull request #38441 from sirlatrom/swarm_plugin_env 2019-07-08 15:26:55 -04:00
time
versions
volume
auth.go
client.go
configs.go
error_response.go
error_response_ext.go
graph_driver_data.go
id_response.go
image_delete_response_item.go
image_summary.go
plugin.go
plugin_device.go
plugin_env.go
plugin_interface_type.go
plugin_mount.go
plugin_responses.go
port.go
seccomp.go
service_update_response.go
stats.go
types.go Add variant to image.Image and legacy builder 2019-09-24 22:18:16 +00:00
volume.go