mirror of https://github.com/docker/docs.git
Update docs on command help (#11341)
* Update docs on command help This is change is based on the output of the script proposed by @smola in: https://github.com/docker/docker.github.io/pull/11173 Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com> * Formatting updates * Minor style update Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
This commit is contained in:
parent
4236ca0914
commit
411bf944cb
|
@ -6,17 +6,22 @@ notoc: true
|
|||
|
||||
---
|
||||
|
||||
```
|
||||
```none
|
||||
Usage: build [options] [--build-arg key=val...] [SERVICE...]
|
||||
|
||||
Options:
|
||||
--build-arg key=val Set build-time variables for services.
|
||||
--compress Compress the build context using gzip.
|
||||
--force-rm Always remove intermediate containers.
|
||||
-m, --memory MEM Set memory limit for the build container.
|
||||
--no-cache Do not use cache when building the image.
|
||||
--pull Always attempt to pull a newer version of the image.
|
||||
-m, --memory MEM Sets memory limit for the build container.
|
||||
--build-arg key=val Set build-time variables for services.
|
||||
--no-rm Do not remove intermediate containers after a successful build.
|
||||
--parallel Build images in parallel.
|
||||
--progress string Set type of progress output (`auto`, `plain`, `tty`).
|
||||
`EXPERIMENTAL` flag for native builder.
|
||||
To enable, run with `COMPOSE_DOCKER_CLI_BUILD=1`)
|
||||
--pull Always attempt to pull a newer version of the image.
|
||||
-q, --quiet Don't print anything to `STDOUT`.
|
||||
```
|
||||
|
||||
Services are built once and then tagged, by default as `project_service`. For
|
||||
|
|
|
@ -7,13 +7,14 @@ redirect_from:
|
|||
- /compose/reference/bundle/
|
||||
---
|
||||
|
||||
```
|
||||
```none
|
||||
Usage: config [options]
|
||||
|
||||
Options:
|
||||
--resolve-image-digests Pin image tags to digests.
|
||||
--no-interpolate Don't interpolate environment variables.
|
||||
-q, --quiet Only validate the configuration, don't print anything.
|
||||
-q, --quiet Only validate the configuration, don't print
|
||||
anything.
|
||||
--services Print the service names, one per line.
|
||||
--volumes Print the volume names, one per line.
|
||||
--hash="*" Print the service config hash, one per line.
|
||||
|
|
|
@ -9,9 +9,7 @@ notoc: true
|
|||
instead.
|
||||
{: .warning }
|
||||
|
||||
```
|
||||
Creates containers for a service.
|
||||
|
||||
```none
|
||||
Usage: create [options] [SERVICE...]
|
||||
|
||||
Options:
|
||||
|
|
|
@ -5,7 +5,7 @@ title: docker-compose down
|
|||
notoc: true
|
||||
---
|
||||
|
||||
```
|
||||
```none
|
||||
Usage: down [options]
|
||||
|
||||
Options:
|
||||
|
|
|
@ -5,7 +5,7 @@ title: docker-compose events
|
|||
notoc: true
|
||||
---
|
||||
|
||||
```
|
||||
```none
|
||||
Usage: events [options] [SERVICE...]
|
||||
|
||||
Options:
|
||||
|
|
|
@ -5,7 +5,7 @@ title: docker-compose exec
|
|||
notoc: true
|
||||
---
|
||||
|
||||
```
|
||||
```none
|
||||
Usage: exec [options] [-e KEY=VAL...] SERVICE COMMAND [ARGS...]
|
||||
|
||||
Options:
|
||||
|
|
|
@ -5,8 +5,8 @@ title: docker-compose help
|
|||
notoc: true
|
||||
---
|
||||
|
||||
```
|
||||
Usage: help COMMAND
|
||||
```none
|
||||
Usage: help [COMMAND]
|
||||
```
|
||||
|
||||
Displays help and usage instructions for a command.
|
||||
|
|
|
@ -5,7 +5,7 @@ title: docker-compose images
|
|||
notoc: true
|
||||
---
|
||||
|
||||
```
|
||||
```none
|
||||
Usage: images [options] [SERVICE...]
|
||||
|
||||
Options:
|
||||
|
|
|
@ -5,7 +5,7 @@ title: docker-compose kill
|
|||
notoc: true
|
||||
---
|
||||
|
||||
```
|
||||
```none
|
||||
Usage: kill [options] [SERVICE...]
|
||||
|
||||
Options:
|
||||
|
|
|
@ -5,7 +5,7 @@ title: docker-compose logs
|
|||
notoc: true
|
||||
---
|
||||
|
||||
```
|
||||
```none
|
||||
Usage: logs [options] [SERVICE...]
|
||||
|
||||
Options:
|
||||
|
|
|
@ -5,7 +5,7 @@ title: docker-compose pause
|
|||
notoc: true
|
||||
---
|
||||
|
||||
```
|
||||
```none
|
||||
Usage: pause [SERVICE...]
|
||||
```
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ title: docker-compose port
|
|||
notoc: true
|
||||
---
|
||||
|
||||
```
|
||||
```none
|
||||
Usage: port [options] SERVICE PRIVATE_PORT
|
||||
|
||||
Options:
|
||||
|
|
|
@ -5,7 +5,7 @@ title: docker-compose pull
|
|||
notoc: true
|
||||
---
|
||||
|
||||
```
|
||||
```none
|
||||
Usage: pull [options] [SERVICE...]
|
||||
|
||||
Options:
|
||||
|
|
|
@ -5,7 +5,7 @@ title: docker-compose push
|
|||
notoc: true
|
||||
---
|
||||
|
||||
```
|
||||
```none
|
||||
Usage: push [options] [SERVICE...]
|
||||
|
||||
Options:
|
||||
|
|
|
@ -5,7 +5,7 @@ title: docker-compose restart
|
|||
notoc: true
|
||||
---
|
||||
|
||||
```
|
||||
```none
|
||||
Usage: restart [options] [SERVICE...]
|
||||
|
||||
Options:
|
||||
|
|
|
@ -12,6 +12,7 @@ Options:
|
|||
-f, --force Don't ask to confirm removal
|
||||
-s, --stop Stop the containers, if required, before removing
|
||||
-v Remove any anonymous volumes attached to containers
|
||||
-a, --all Deprecated - no effect.
|
||||
```
|
||||
|
||||
Removes stopped service containers.
|
||||
|
|
|
@ -5,7 +5,7 @@ title: docker-compose run
|
|||
notoc: true
|
||||
---
|
||||
|
||||
```
|
||||
```none
|
||||
Usage:
|
||||
run [options] [-v VOLUME...] [-p PORT...] [-e KEY=VAL...] [-l KEY=VALUE...]
|
||||
SERVICE [COMMAND] [ARGS...]
|
||||
|
|
|
@ -11,7 +11,7 @@ notoc: true
|
|||
the `scale` command, as it incorporates the behaviour of the `up` command.
|
||||
{: .warning }
|
||||
|
||||
```
|
||||
```none
|
||||
Usage: scale [options] [SERVICE=NUM...]
|
||||
|
||||
Options:
|
||||
|
|
|
@ -5,7 +5,7 @@ title: docker-compose start
|
|||
notoc: true
|
||||
---
|
||||
|
||||
```
|
||||
```none
|
||||
Usage: start [SERVICE...]
|
||||
```
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ title: docker-compose stop
|
|||
notoc: true
|
||||
---
|
||||
|
||||
```
|
||||
```none
|
||||
Usage: stop [options] [SERVICE...]
|
||||
|
||||
Options:
|
||||
|
|
|
@ -7,7 +7,6 @@ notoc: true
|
|||
|
||||
```none
|
||||
Usage: top [SERVICE...]
|
||||
|
||||
```
|
||||
|
||||
Displays the running processes.
|
||||
|
|
|
@ -5,7 +5,7 @@ title: docker-compose unpause
|
|||
notoc: true
|
||||
---
|
||||
|
||||
```
|
||||
```none
|
||||
Usage: unpause [SERVICE...]
|
||||
```
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ title: docker-compose up
|
|||
notoc: true
|
||||
---
|
||||
|
||||
```
|
||||
```none
|
||||
Usage: up [options] [--scale SERVICE=NUM...] [SERVICE...]
|
||||
|
||||
Options:
|
||||
|
@ -26,6 +26,7 @@ Options:
|
|||
--build Build images before starting containers.
|
||||
--abort-on-container-exit Stops all containers if any container was
|
||||
stopped. Incompatible with -d.
|
||||
--attach-dependencies Attach to dependent containers.
|
||||
-t, --timeout TIMEOUT Use this timeout in seconds for container
|
||||
shutdown when attached or when containers are
|
||||
already running. (default: 10)
|
||||
|
|
Loading…
Reference in New Issue