mirror of https://github.com/docker/cli.git
tweak description of "docker exec" command
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
c23d45f0c9
commit
ac22b2bf52
|
@ -45,7 +45,7 @@ func NewExecCommand(dockerCli command.Cli) *cobra.Command {
|
||||||
|
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "exec [OPTIONS] CONTAINER COMMAND [ARG...]",
|
Use: "exec [OPTIONS] CONTAINER COMMAND [ARG...]",
|
||||||
Short: "Run a command in a running container",
|
Short: "Execute a command in a running container",
|
||||||
Args: cli.RequiresMinArgs(2),
|
Args: cli.RequiresMinArgs(2),
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
options.Container = args[0]
|
options.Container = args[0]
|
||||||
|
|
|
@ -287,7 +287,7 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from events' -l since -d 'Sh
|
||||||
complete -c docker -A -f -n '__fish_seen_subcommand_from events' -l until -d 'Stream events until this timestamp'
|
complete -c docker -A -f -n '__fish_seen_subcommand_from events' -l until -d 'Stream events until this timestamp'
|
||||||
|
|
||||||
# exec
|
# exec
|
||||||
complete -c docker -f -n '__fish_docker_no_subcommand' -a exec -d 'Run a command in a running container'
|
complete -c docker -f -n '__fish_docker_no_subcommand' -a exec -d 'Execute a command in a running container'
|
||||||
complete -c docker -A -f -n '__fish_seen_subcommand_from exec' -s d -l detach -d 'Detached mode: run command in the background'
|
complete -c docker -A -f -n '__fish_seen_subcommand_from exec' -s d -l detach -d 'Detached mode: run command in the background'
|
||||||
complete -c docker -A -f -n '__fish_seen_subcommand_from exec' -l detach-keys -d 'Override the key sequence for detaching a container'
|
complete -c docker -A -f -n '__fish_seen_subcommand_from exec' -l detach-keys -d 'Override the key sequence for detaching a container'
|
||||||
complete -c docker -A -f -n '__fish_seen_subcommand_from exec' -s e -l env -d 'Set environment variables'
|
complete -c docker -A -f -n '__fish_seen_subcommand_from exec' -s e -l env -d 'Set environment variables'
|
||||||
|
|
|
@ -567,7 +567,7 @@ __docker_container_commands() {
|
||||||
"cp:Copy files/folders between a container and the local filesystem"
|
"cp:Copy files/folders between a container and the local filesystem"
|
||||||
"create:Create a new container"
|
"create:Create a new container"
|
||||||
"diff:Inspect changes on a container's filesystem"
|
"diff:Inspect changes on a container's filesystem"
|
||||||
"exec:Run a command in a running container"
|
"exec:Execute a command in a running container"
|
||||||
"export:Export a container's filesystem as a tar archive"
|
"export:Export a container's filesystem as a tar archive"
|
||||||
"inspect:Display detailed information on one or more containers"
|
"inspect:Display detailed information on one or more containers"
|
||||||
"kill:Kill one or more running containers"
|
"kill:Kill one or more running containers"
|
||||||
|
|
|
@ -21,7 +21,7 @@ Commands:
|
||||||
cp Copy files/folders between a container and the local filesystem
|
cp Copy files/folders between a container and the local filesystem
|
||||||
create Create a new container
|
create Create a new container
|
||||||
diff Inspect changes to files or directories on a container's filesystem
|
diff Inspect changes to files or directories on a container's filesystem
|
||||||
exec Run a command in a running container
|
exec Execute a command in a running container
|
||||||
export Export a container's filesystem as a tar archive
|
export Export a container's filesystem as a tar archive
|
||||||
inspect Display detailed information on one or more containers
|
inspect Display detailed information on one or more containers
|
||||||
kill Kill one or more running containers
|
kill Kill one or more running containers
|
||||||
|
|
|
@ -9,7 +9,7 @@ keywords: "command, container, run, execute"
|
||||||
```markdown
|
```markdown
|
||||||
Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...]
|
Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...]
|
||||||
|
|
||||||
Run a command in a running container
|
Execute a command in a running container
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-d, --detach Detached mode: run command in the background
|
-d, --detach Detached mode: run command in the background
|
||||||
|
|
|
@ -53,7 +53,7 @@ read the [`dockerd`](dockerd.md) reference page.
|
||||||
| [create](create.md) | Create a new container |
|
| [create](create.md) | Create a new container |
|
||||||
| [diff](diff.md) | Inspect changes on a container's filesystem |
|
| [diff](diff.md) | Inspect changes on a container's filesystem |
|
||||||
| [events](events.md) | Get real time events from the server |
|
| [events](events.md) | Get real time events from the server |
|
||||||
| [exec](exec.md) | Run a command in a running container |
|
| [exec](exec.md) | Execute a command in a running container |
|
||||||
| [export](export.md) | Export a container's filesystem as a tar archive |
|
| [export](export.md) | Export a container's filesystem as a tar archive |
|
||||||
| [kill](kill.md) | Kill a running container |
|
| [kill](kill.md) | Kill a running container |
|
||||||
| [logs](logs.md) | Fetch the logs of a container |
|
| [logs](logs.md) | Fetch the logs of a container |
|
||||||
|
|
Loading…
Reference in New Issue