-
Notifications
You must be signed in to change notification settings - Fork 18.9k
containerd integration: Platform selection #47680
Copy link
Copy link
Closed
Labels
area/imagesImage ServiceImage Servicearea/uxcontainerd-integrationIssues and PRs related to containerd integrationIssues and PRs related to containerd integrationkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.kind/epicEpics to track work on related ticketsEpics to track work on related tickets
Milestone
Metadata
Metadata
Assignees
Labels
area/imagesImage ServiceImage Servicearea/uxcontainerd-integrationIssues and PRs related to containerd integrationIssues and PRs related to containerd integrationkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.kind/epicEpics to track work on related ticketsEpics to track work on related tickets
Type
Projects
Status
Required for default containerd
Description
A draft tracking issue for containerd multiplatform image UX PRs
The general rule of platform selection is:
--platformshould act on the "full" multi-platform image instead of a single platform from that image if possible. Commands that act on information purely based on image config, should default to any present platform, but prefer the one matching the daemon host platform.docker push --platform=...
Pick a platform-specific manifest and push it instead of the whole multi-platform index.
platformswitch docker/cli#4984--platformswitch #47679docker images --tree
Make
docker imagesoutput multi-platform aware--treeflag docker/cli#4982cli/command/formatterdocker convert (cancelled)
Create new docker images from the existing multi-platform images and filter their manifests.
In future this could also support other operations (like converting layer compression, etc).
NOTE: While
docker image createcould be a better name for this,docker createis already an alias todocker container create.convertcommand docker/cli#4983docker inspect --platform=...
Manifestsfield #48264docker rmi --platform=...
Remove content of the specified platform
docker save --platform=...
Pick a platform-specific manifest and save it instead of the whole multi-platform index.
--platformflag to history, save and load docker/cli#5331platformparameter to history, save and load #48295docker load --platform=...
Load the image from the tarball (multi-platform index), but only import specified platform blobs.
--platformflag to history, save and load docker/cli#5331platformparameter to history, save and load #48295docker history --platform=...
Show history for the specified platform, otherwise will show the host platform, if host platform isn't available, it will pick any.
--platformflag to history, save and load docker/cli#5331platformparameter to history, save and load #48295