Modify "stop" to "stop and remove" to avoid container name conflict error. (#17816)

Added instruction to removed the container along with stopping it to avoid error - You have to remove (or rename) that container to be able to reuse that name.
This commit is contained in:
Ekwinder Saini 2023-07-24 23:59:51 +05:30 committed by GitHub
parent 9cfbe87392
commit 88c5a53bda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ Now we can build our image.
$ docker build --tag python-docker-dev .
```
If you have any containers running from the previous sections using the name `rest-server` or port 8000, [stop](./run-containers.md/#stop-start-and-name-containers) them now.
If you have any containers running from the previous sections using the name `rest-server` or port 8000, [stop and remove](./run-containers.md/#stop-start-and-name-containers) them now.
Now, lets add the container to the database network and then run our container. This allows us to access the database by its container name.