mirror of
https://github.com/containers/podman.git
synced 2025-06-24 03:08:13 +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)
|
||||
|
||||
if registry.IsRemote() {
|
||||
_ = flags.MarkHidden("conmon-pidfile")
|
||||
_ = flags.MarkHidden("pidfile")
|
||||
}
|
||||
}
|
||||
|
@ -79,6 +79,7 @@ func runFlags(cmd *cobra.Command) {
|
||||
|
||||
if registry.IsRemote() {
|
||||
_ = flags.MarkHidden("preserve-fds")
|
||||
_ = flags.MarkHidden("conmon-pidfile")
|
||||
_ = flags.MarkHidden("pidfile")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user