Merge pull request #23700 from rhatdan/exec

command is not optional to podman exec
This commit is contained in:
openshift-merge-bot[bot]
2024-08-22 12:16:42 +00:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ var (
execDescription = `Execute the specified command inside a running container.
`
execCommand = &cobra.Command{
Use: "exec [options] CONTAINER [COMMAND [ARG...]]",
Use: "exec [options] CONTAINER COMMAND [ARG...]",
Short: "Run a process in a running container",
Long: execDescription,
RunE: exec,

View File

@ -4,9 +4,9 @@
podman\-exec - Execute a command in a running container
## SYNOPSIS
**podman exec** [*options*] *container* [*command* [*arg* ...]]
**podman exec** [*options*] *container* *command* [*arg* ...]
**podman container exec** [*options*] *container* [*command* [*arg* ...]]
**podman container exec** [*options*] *container* *command* [*arg* ...]
## DESCRIPTION
**podman exec** executes a command in a running container.