Skip to content

Commit

Permalink
pullrequestreview-1452571948: Hide the --noout option as suggested by @…
Browse files Browse the repository at this point in the history
…Luap99 in containers#18657.

Signed-off-by: Ali Rizvi-Santiago <[email protected]>
  • Loading branch information
arizvisa committed May 31, 2023
1 parent a976f91 commit 5d0f9d5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions cmd/podman/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 0 additions & 4 deletions docs/source/markdown/podman.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 5d0f9d5

Please sign in to comment.