mirror of https://github.com/docker/docs.git
compose/reference: use "console" for shell examples
This allows for easier copying of the commands, without selecting the prompt. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
c35a6abc42
commit
ac1be36710
|
@ -17,7 +17,7 @@ Options:
|
||||||
|
|
||||||
Lists containers.
|
Lists containers.
|
||||||
|
|
||||||
```bash
|
```console
|
||||||
$ docker-compose ps
|
$ docker-compose ps
|
||||||
Name Command State Ports
|
Name Command State Ports
|
||||||
---------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -38,7 +38,7 @@ services:
|
||||||
|
|
||||||
If you run `docker-compose pull ServiceName` in the same directory as the `docker-compose.yml` file that defines the service, Docker pulls the associated image. For example, to call the `postgres` image configured as the `db` service in our example, you would run `docker-compose pull db`.
|
If you run `docker-compose pull ServiceName` in the same directory as the `docker-compose.yml` file that defines the service, Docker pulls the associated image. For example, to call the `postgres` image configured as the `db` service in our example, you would run `docker-compose pull db`.
|
||||||
|
|
||||||
```bash
|
```console
|
||||||
$ docker-compose pull db
|
$ docker-compose pull db
|
||||||
Pulling db (postgres:latest)...
|
Pulling db (postgres:latest)...
|
||||||
latest: Pulling from library/postgres
|
latest: Pulling from library/postgres
|
||||||
|
|
|
@ -11,7 +11,7 @@ Usage: top [SERVICE...]
|
||||||
|
|
||||||
Displays the running processes.
|
Displays the running processes.
|
||||||
|
|
||||||
```bash
|
```console
|
||||||
$ docker-compose top
|
$ docker-compose top
|
||||||
compose_service_a_1
|
compose_service_a_1
|
||||||
PID USER TIME COMMAND
|
PID USER TIME COMMAND
|
||||||
|
|
Loading…
Reference in New Issue