-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
LCOW: --platform on import (already in API) #1371
Conversation
@thaJeztah do you think https://github.com/docker/cli/blob/master/man/src/image/import.md and https://github.com/docker/cli/blob/master/docs/reference/commandline/import.md should be updated accordingly? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with the doc updated
Which repo are the docs in again? Oh NVM, they are here. I could have sworn they were in a separate repo. Or is that just the engine? |
Signed-off-by: John Howard <jhoward@microsoft.com>
6ff72cf
to
b55a0b6
Compare
Updated docs. |
Thank you @jhowardmsft for this PR! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🐯
cc @thaJeztah
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -43,6 +44,7 @@ func NewImportCommand(dockerCli command.Cli) *cobra.Command { | |||
options.changes = dockeropts.NewListOpts(nil) | |||
flags.VarP(&options.changes, "change", "c", "Apply Dockerfile instruction to the created image") | |||
flags.StringVarP(&options.message, "message", "m", "", "Set commit message for imported image") | |||
command.AddPlatformFlag(flags, &options.platform) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For future reference (and save some digging); command.AddPlatformFlag()
also sets the annotations for API-version and "experimental" being enabled.
Signed-off-by: John Howard jhoward@microsoft.com
A tester here found import doesn't work for LCOW. No idea how I missed this - it's in the API, just not in the CLI. As the tar generated in export doesn't have any indication of platform, it needs to be explicit. See how in the before-fix case, it's going down the WCOW route (windowsfilter),
Before:
After: