From 7bbc822b9f80d636c0d8f7cfc0b169377f0a8a68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=A8=E3=81=86=E3=81=9B=E3=81=84=E3=81=8D=E3=82=87?= =?UTF-8?q?=E3=81=86?= Date: Fri, 18 Aug 2017 05:48:37 +0800 Subject: [PATCH] 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`. --- engine/admin/volumes/volumes.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/admin/volumes/volumes.md b/engine/admin/volumes/volumes.md index a6641b6aa1..4298d881e3 100644 --- a/engine/admin/volumes/volumes.md +++ b/engine/admin/volumes/volumes.md @@ -252,9 +252,9 @@ After running either of these examples, run the following commands to clean up t containers and volumes. ```bash -$ docker container stop devtest +$ docker container stop nginxtest -$ docker container rm devtest +$ docker container rm nginxtest $ docker volume rm nginx-vol ``` @@ -325,9 +325,9 @@ correctly. Look for the `Mounts` section: Stop and remove the container, and remove the volume: ```bash -$ docker container stop devtest +$ docker container stop nginxtest -$ docker container rm devtest +$ docker container rm nginxtest $ docker volume rm nginx-vol ```