From b4f6bf9c8e833ec41e5efb5b9b265c03d786d8ff Mon Sep 17 00:00:00 2001 From: optmist2309 Date: Fri, 9 Oct 2020 19:54:32 +0530 Subject: [PATCH] command upadted to remove and stop container --- docs/tutorial/updating-our-app/index.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/tutorial/updating-our-app/index.md b/docs/tutorial/updating-our-app/index.md index 92f752e..499c56c 100644 --- a/docs/tutorial/updating-our-app/index.md +++ b/docs/tutorial/updating-our-app/index.md @@ -49,7 +49,7 @@ ways that we can remove the old container. Feel free to choose the path that you ### Removing a container using the CLI -1. Get the ID of the container by using the `docker ps` command. +1. Get the ID or container name of the container by using the `docker ps` command. ```bash docker ps @@ -58,19 +58,19 @@ ways that we can remove the old container. Feel free to choose the path that you 1. Use the `docker stop` command to stop the container. ```bash - # Swap out with the ID from docker ps - docker stop + # Swap out or with the ID and NAMES from docker ps + docker stop or ``` 1. Once the container has stopped, you can remove it by using the `docker rm` command. ```bash - docker rm + docker rm or ``` !!! info "Pro tip" You can stop and remove a container in a single command by adding the "force" flag - to the `docker rm` command. For example: `docker rm -f ` + to the `docker rm` command. For example: `docker rm -f or ` ### Removing a container using the Docker Dashboard