mirror of https://github.com/docker/docs.git
add reminder to stop containers (#15868)
This commit is contained in:
parent
68ad62f743
commit
217166a8d8
|
@ -156,6 +156,8 @@ 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.
|
||||
|
||||
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.
|
||||
|
||||
```console
|
||||
|
@ -221,6 +223,8 @@ Another really cool feature of using a Compose file is that we have service reso
|
|||
|
||||
Note that we did not specify a network for those 2 services. When we use docker-compose it automatically creates a network and connect the services to it. For more information see [Networking in Compose](../../compose/networking.md)
|
||||
|
||||
If you have any containers running from the previous sections, [stop](./run-containers.md/#stop-start-and-name-containers) them now.
|
||||
|
||||
Now, to start our application and to confirm that it is running properly, run the following command:
|
||||
|
||||
```console
|
||||
|
|
Loading…
Reference in New Issue