From f331c9445f0be468a47a43e290845f7b637535d5 Mon Sep 17 00:00:00 2001 From: chenkang Date: Fri, 16 Apr 2021 23:09:17 +0800 Subject: hide conmon-pidfile flag on remote mode Signed-off-by: chenkang --- cmd/podman/containers/create.go | 1 + cmd/podman/containers/run.go | 1 + 2 files changed, 2 insertions(+) (limited to 'cmd/podman') diff --git a/cmd/podman/containers/create.go b/cmd/podman/containers/create.go index 5d2f3aad6..507e9c221 100644 --- a/cmd/podman/containers/create.go +++ b/cmd/podman/containers/create.go @@ -65,6 +65,7 @@ func createFlags(cmd *cobra.Command) { flags.SetNormalizeFunc(utils.AliasFlags) if registry.IsRemote() { + _ = flags.MarkHidden("conmon-pidfile") _ = flags.MarkHidden("pidfile") } } diff --git a/cmd/podman/containers/run.go b/cmd/podman/containers/run.go index fa3310fad..8e27977c0 100644 --- a/cmd/podman/containers/run.go +++ b/cmd/podman/containers/run.go @@ -79,6 +79,7 @@ func runFlags(cmd *cobra.Command) { if registry.IsRemote() { _ = flags.MarkHidden("preserve-fds") + _ = flags.MarkHidden("conmon-pidfile") _ = flags.MarkHidden("pidfile") } } -- cgit v1.2.3-54-g00ecf