-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add --config for Docker compatibility #15658
Conversation
Also helps fix: #14917 |
cmd/podman/root.go
Outdated
@@ -363,6 +363,8 @@ func rootFlags(cmd *cobra.Command, opts *entities.PodmanConfig) { | |||
lFlags.StringVarP(&opts.URI, "host", "H", uri, "Used for Docker compatibility") | |||
_ = lFlags.MarkHidden("host") | |||
|
|||
lFlags.String("config", "", "Ignored for Docker compatibility") |
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.
I don't like the user experience when silently ignoring the option. I would expect it to have some impact. An error as at the moment at least tells me that it's not going to work.
I would prefer to keep erroring out or do an logrus.Errorf("--config is not supported")
that screams at the user.
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.
I can add the logrus.Error, but the problem was tools that were doing
docker --config ...
When users commented out this option, everything worked properly.
If we start spewing errors then it could be an aggravation.
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.
I understand the intention. It's a delicate art. I am mostly afraid to let users believe into thinking that --config $lifeOrDeath
would work.
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.
Lets settle on a warning.
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, thanks!
Fixes: containers#14767 Signed-off-by: Daniel J Walsh <[email protected]>
@containers/podman-maintainers PTAL |
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
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flouthoc, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes: #14767
Signed-off-by: Daniel J Walsh [email protected]
Does this PR introduce a user-facing change?