mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
c21a3cf432
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> |
||
---|---|---|
.. | ||
cache.go | ||
image.go | ||
image_builder.go | ||
image_commit.go | ||
image_delete.go | ||
image_events.go | ||
image_exporter.go | ||
image_history.go | ||
image_import.go | ||
image_inspect.go | ||
image_prune.go | ||
image_pull.go | ||
image_push.go | ||
image_search.go | ||
image_search_test.go | ||
image_tag.go | ||
image_unix.go | ||
image_windows.go | ||
images.go | ||
locals.go | ||
service.go |