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.
Challenge: Working with persistent storage and networks - Docker Tutorial
From the course: Docker for Developers: Create and Manage Docker Containers
Challenge: Working with persistent storage and networks
(uplifting music) - [Instructor] It is time for another challenge. In this challenge, you'll work with persistent storage and networks using CLI commands. Here are your challenge tasks. First, run the containers for both the app and DB services that are defined in the Docker compose file. Next, get a list of the volumes and copy the full name of the PG data volume. Then stop the containers and remove the custom network that is defined in the networks section of the compose file. Here's a tip. This can be done using one command. And finally, remove the unused PG data volume. There are a few ways this can be done. That's it. This challenge should take approximately five to 10 minutes. Good luck, and in the next video I'll show you how I would go about solving this challenge.
Contents
-
-
-
-
-
-
-
(Locked)
Comparing Docker volumes and bind mounts2m 2s
-
(Locked)
Using a Docker volume4m
-
(Locked)
Using a bind mount3m 1s
-
(Locked)
Creating a custom network4m 16s
-
(Locked)
Challenge: Working with persistent storage and networks1m
-
(Locked)
Solution: Working with persistent storage and networks2m 5s
-
(Locked)
-
-
-
-