From the course: Docker for Developers: Create and Manage Docker Containers

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Solution: Working with persistent storage and networks

Solution: Working with persistent storage and networks - Docker Tutorial

From the course: Docker for Developers: Create and Manage Docker Containers

Solution: Working with persistent storage and networks

(upbeat music) - [Instructor] For this challenge, you are tasked with working with persistent storage and networks using CLI commands. Let's walk through how I'd solve this challenge. First, I asked you to run the containers for both the app and DB services that are defined in the Docker compose file. This is done using the docker compose up command. Next, I instructed you to get a list of the volumes and copy the full name of the PG data volume. You would do this using the Docker volume LS command. The name of the PG data volume contains the name of the Docker compose project. The default is the name of the folder that the compose file is located in. Let's copy the full name to use in a future command. Then I ask you to stop the containers and remove the custom network that is defined in the network's section of the compose file. I gave you a tip that this can be done with one command and that is "Docker composed down."…

Contents