mirror of
https://github.com/containers/podman.git
synced 2025-06-24 11:28:24 +08:00
hide conmon-pidfile flag on remote mode
Signed-off-by: chenkang <kongchen28@gmail.com>
This commit is contained in:
@ -65,6 +65,7 @@ func createFlags(cmd *cobra.Command) {
|
|||||||
flags.SetNormalizeFunc(utils.AliasFlags)
|
flags.SetNormalizeFunc(utils.AliasFlags)
|
||||||
|
|
||||||
if registry.IsRemote() {
|
if registry.IsRemote() {
|
||||||
|
_ = flags.MarkHidden("conmon-pidfile")
|
||||||
_ = flags.MarkHidden("pidfile")
|
_ = flags.MarkHidden("pidfile")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -79,6 +79,7 @@ func runFlags(cmd *cobra.Command) {
|
|||||||
|
|
||||||
if registry.IsRemote() {
|
if registry.IsRemote() {
|
||||||
_ = flags.MarkHidden("preserve-fds")
|
_ = flags.MarkHidden("preserve-fds")
|
||||||
|
_ = flags.MarkHidden("conmon-pidfile")
|
||||||
_ = flags.MarkHidden("pidfile")
|
_ = flags.MarkHidden("pidfile")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user