diff --git a/cmd/podman/root.go b/cmd/podman/root.go index 21a3e6f6bd..d875f828f7 100644 --- a/cmd/podman/root.go +++ b/cmd/podman/root.go @@ -441,6 +441,7 @@ func rootFlags(cmd *cobra.Command, podmanConfig *entities.PodmanConfig) { _ = cmd.RegisterFlagCompletionFunc(outFlagName, completion.AutocompleteDefault) lFlags.BoolVar(&noStdout, "noout", false, "do not output to stdout") + lFlags.MarkHidden("noout") // Superseded by --out lFlags.BoolVarP(&podmanConfig.Remote, "remote", "r", registry.IsRemote(), "Access remote Podman service") pFlags := cmd.PersistentFlags() diff --git a/docs/source/markdown/podman.1.md b/docs/source/markdown/podman.1.md index db204beabc..0b919d15d7 100644 --- a/docs/source/markdown/podman.1.md +++ b/docs/source/markdown/podman.1.md @@ -95,10 +95,6 @@ and "$graphroot/networks" as rootless. For the CNI backend the default is "/etc/cni/net.d" as root and "$HOME/.config/cni/net.d" as rootless. CNI is deprecated from Podman in the future, use netavark. -#### **--noout** - -Redirect stdout to /dev/null. This command prevents all stdout from the Podman command. The **--noout** option is not block stderr or stdout from containers. - #### **--out**=*path* Redirect the output of podman to the specified path without affecting the container output or its logs. This parameter can be used to capture the output from any of podman's commands directly into a file and enable suppression of podman's output by specifying /dev/null as the path. To explicitly disable the container logging, the **--log-driver** option should be used.