mirror of https://github.com/docker/cli.git
tweak description of "docker run" command
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
ac22b2bf52
commit
6e6652b702
|
@ -35,7 +35,7 @@ func NewRunCommand(dockerCli command.Cli) *cobra.Command {
|
||||||
|
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "run [OPTIONS] IMAGE [COMMAND] [ARG...]",
|
Use: "run [OPTIONS] IMAGE [COMMAND] [ARG...]",
|
||||||
Short: "Run a command in a new container",
|
Short: "Create and run a new container from an image",
|
||||||
Args: cli.RequiresMinArgs(1),
|
Args: cli.RequiresMinArgs(1),
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
copts.Image = args[0]
|
copts.Image = args[0]
|
||||||
|
|
|
@ -452,7 +452,7 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from rmi' -l no-prune -d 'Do
|
||||||
complete -c docker -A -f -n '__fish_seen_subcommand_from rmi' -a '(__fish_print_docker_images)' -d "Image"
|
complete -c docker -A -f -n '__fish_seen_subcommand_from rmi' -a '(__fish_print_docker_images)' -d "Image"
|
||||||
|
|
||||||
# run
|
# run
|
||||||
complete -c docker -f -n '__fish_docker_no_subcommand' -a run -d 'Run a command in a new container'
|
complete -c docker -f -n '__fish_docker_no_subcommand' -a run -d 'Create and run a new container from an image'
|
||||||
complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s a -l attach -d 'Attach to STDIN, STDOUT or STDERR.'
|
complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s a -l attach -d 'Attach to STDIN, STDOUT or STDERR.'
|
||||||
complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l add-host -d 'Add a custom host-to-IP mapping (host:ip)'
|
complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l add-host -d 'Add a custom host-to-IP mapping (host:ip)'
|
||||||
complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s c -l cpu-shares -d 'CPU shares (relative weight)'
|
complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s c -l cpu-shares -d 'CPU shares (relative weight)'
|
||||||
|
|
|
@ -579,7 +579,7 @@ __docker_container_commands() {
|
||||||
"rename:Rename a container"
|
"rename:Rename a container"
|
||||||
"restart:Restart one or more containers"
|
"restart:Restart one or more containers"
|
||||||
"rm:Remove one or more containers"
|
"rm:Remove one or more containers"
|
||||||
"run:Run a command in a new container"
|
"run:Create and run a new container from an image"
|
||||||
"start:Start one or more stopped containers"
|
"start:Start one or more stopped containers"
|
||||||
"stats:Display a live stream of container(s) resource usage statistics"
|
"stats:Display a live stream of container(s) resource usage statistics"
|
||||||
"stop:Stop one or more running containers"
|
"stop:Stop one or more running containers"
|
||||||
|
|
|
@ -329,7 +329,7 @@ $ docker run --help
|
||||||
|
|
||||||
Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
|
Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
|
||||||
|
|
||||||
Run a command in a new container
|
Create and run a new container from an image
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--add-host value Add a custom host-to-IP mapping (host:ip) (default [])
|
--add-host value Add a custom host-to-IP mapping (host:ip) (default [])
|
||||||
|
|
|
@ -33,7 +33,7 @@ Commands:
|
||||||
rename Rename a container
|
rename Rename a container
|
||||||
restart Restart one or more containers
|
restart Restart one or more containers
|
||||||
rm Remove one or more containers
|
rm Remove one or more containers
|
||||||
run Run a command in a new container
|
run Create and run a new container from an image
|
||||||
start Start one or more stopped containers
|
start Start one or more stopped containers
|
||||||
stats Display a live stream of container(s) resource usage statistics
|
stats Display a live stream of container(s) resource usage statistics
|
||||||
stop Stop one or more running containers
|
stop Stop one or more running containers
|
||||||
|
|
|
@ -63,7 +63,7 @@ read the [`dockerd`](dockerd.md) reference page.
|
||||||
| [rename](rename.md) | Rename a container |
|
| [rename](rename.md) | Rename a container |
|
||||||
| [restart](restart.md) | Restart a running container |
|
| [restart](restart.md) | Restart a running container |
|
||||||
| [rm](rm.md) | Remove one or more containers |
|
| [rm](rm.md) | Remove one or more containers |
|
||||||
| [run](run.md) | Run a command in a new container |
|
| [run](run.md) | Create and run a new container from an image |
|
||||||
| [start](start.md) | Start one or more stopped containers |
|
| [start](start.md) | Start one or more stopped containers |
|
||||||
| [stats](stats.md) | Display a live stream of container(s) resource usage statistics |
|
| [stats](stats.md) | Display a live stream of container(s) resource usage statistics |
|
||||||
| [stop](stop.md) | Stop a running container |
|
| [stop](stop.md) | Stop a running container |
|
||||||
|
|
|
@ -9,7 +9,7 @@ keywords: "run, command, container"
|
||||||
```markdown
|
```markdown
|
||||||
Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
|
Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
|
||||||
|
|
||||||
Run a command in a new container
|
Create and run a new container from an image
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--add-host value Add a custom host-to-IP mapping (host:ip) (default [])
|
--add-host value Add a custom host-to-IP mapping (host:ip) (default [])
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
% "DOCKER" "1" "JUNE 2014" "Docker Community" "Docker User Manuals"
|
% "DOCKER" "1" "JUNE 2014" "Docker Community" "Docker User Manuals"
|
||||||
|
|
||||||
# NAME
|
# NAME
|
||||||
docker-run - Run a command in a new container
|
docker-run - Create and run a new container from an image
|
||||||
|
|
||||||
# SYNOPSIS
|
# SYNOPSIS
|
||||||
**docker run**
|
**docker run**
|
||||||
|
|
Loading…
Reference in New Issue