Correct the container name (#4234)

When we run a container, the name of the container is `nginxtest`, but when we `rm` or `stop` it, it should be also `nginxtest`.
This commit is contained in:
とうせいきょう 2017-08-18 05:48:37 +08:00 committed by Misty Stanley-Jones
parent 53ef7cf571
commit 7bbc822b9f
1 changed files with 4 additions and 4 deletions

View File

@ -252,9 +252,9 @@ After running either of these examples, run the following commands to clean up t
containers and volumes. containers and volumes.
```bash ```bash
$ docker container stop devtest $ docker container stop nginxtest
$ docker container rm devtest $ docker container rm nginxtest
$ docker volume rm nginx-vol $ docker volume rm nginx-vol
``` ```
@ -325,9 +325,9 @@ correctly. Look for the `Mounts` section:
Stop and remove the container, and remove the volume: Stop and remove the container, and remove the volume:
```bash ```bash
$ docker container stop devtest $ docker container stop nginxtest
$ docker container rm devtest $ docker container rm nginxtest
$ docker volume rm nginx-vol $ docker volume rm nginx-vol
``` ```