summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")
}
}