8000 Add support for multiple platform options in image load and save by ctalledo · Pull Request #6126 · docker/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for multiple platform options in image load and save #6126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ctalledo
Copy link
@ctalledo ctalledo commented Jun 10, 2025

- What I did

Prior to this change, docker image load and docker image save accept only a single platform via the --platform option.

This change adds support for multiple platforms using a comma-separated list passed to --platform. E.g.:

docker image save --platform linux/amd64,linux/arm64/v8 -o b.tar busybox:latest
docker image load --platform linux/amd64,linux/arm64/v8 -i b.tar

** NOTE **: Depends on the corresponding change in the Moby engine (see moby/moby#50166).

- How I did it

Updated the --platform option in the image load and image save commands to accept an array of platforms, as opposed to a single platform.

- How to verify it

Run updated unit tests.

- Human readable description for the release notes

* Updated `docker image load|save` to accept multiple platforms via the `--platform` option, using a comma separated list (e.g., `docker image load --platform linux/amd64,linux/arm64/v8`).

- A picture of a cute animal (not mandatory but encouraged)

@codecov-commenter
Copy link
codecov-commenter commented Jun 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.05%. Comparing base (8b8f558) to head (0ba4362).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6126      +/-   ##
==========================================
+ Coverage   55.02%   55.05%   +0.03%     
==========================================
  Files         361      361              
  Lines       30152    30161       +9     
==========================================
+ Hits        16591    16605      +14     
+ Misses      12604    12598       -6     
- Partials      957      958       +1     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

ctalledo added 2 commits June 10, 2025 16:34
Signed-off-by: Cesar Talledo <cesar.talledo@docker.com>
Signed-off-by: Cesar Talledo <cesar.talledo@docker.com>
@ctalledo ctalledo force-pushed the fix-for-moby-48759 branch from 54b967e to 8993f54 Compare June 10, 2025 23:34
…/save.

Signed-off-by: Cesar Talledo <cesar.talledo@docker.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0