summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchenkang <kongchen28@gmail.com>2021-04-16 23:09:17 +0800
committerchenkang <kongchen28@gmail.com>2021-04-16 23:10:19 +0800
commitf331c9445f0be468a47a43e290845f7b637535d5 (patch)
tree4d2226a1a0f22465fe8a2877fca9d6ac4f0dcd2e
parente16200ac9f0e8fde836a14cc6951203e8986122a (diff)
downloadpodman-f331c9445f0be468a47a43e290845f7b637535d5.tar.gz
podman-f331c9445f0be468a47a43e290845f7b637535d5.tar.bz2
podman-f331c9445f0be468a47a43e290845f7b637535d5.zip
hide conmon-pidfile flag on remote mode
Signed-off-by: chenkang <kongchen28@gmail.com>
-rw-r--r--cmd/podman/containers/create.go1
-rw-r--r--cmd/podman/containers/run.go1
2 files changed, 2 insertions, 0 deletions
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")
}
}