mirror of https://github.com/docker/docs.git
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:
parent
9cfbe87392
commit
88c5a53bda
|
@ -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, let’s add the container to the database network and then run our container. This allows us to access the database by its container name.
|
||||
|
||||
|
|
Loading…
Reference in New Issue