add reminder to stop containers (#15868)

This commit is contained in:
Craig Osterhout 2022-10-14 09:50:22 -07:00 committed by GitHub
parent 68ad62f743
commit 217166a8d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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, lets 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