🍀 Challenge
Let's put to test what we have learned so far!
Challenge
Test your mastery of Docker’s commands in this challenge.
Click the Run button, you will be able to view a terminal, then do the following:
- Build the image and up the container in a detached mode.
- Stop the
web
service only. - Restart the
web
service only. - View all the images created.
- View all the containers or services created.
- Stop all the containers or services except for the
educative
one. You can list the containers except for the educative one using the following command:
docker ps --format '{{.Names}}' | grep -v "educative" | awk '{print $1}'
- View all the stopped containers or services.
- Delete all the containers except for the
educative
one.
Remember the stopped containers are in the
exited
state.
- Delete all the networks.
- Delete all the images.
Get hands-on with 1300+ tech skills courses.