0
0
Dockerdevops~10 mins

docker compose up and down - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to start services defined in a Docker Compose file.

Docker
docker compose [1]
Drag options to blanks, or click blank then click option'
Aup
Bbuild
Cdown
Dps
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'down' instead of 'up' to start services.
Confusing 'build' with starting containers.
2fill in blank
medium

Complete the command to stop and remove containers, networks, and volumes created by Docker Compose.

Docker
docker compose [1]
Drag options to blanks, or click blank then click option'
Alogs
Bstart
Crestart
Ddown
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' or 'restart' instead of 'down'.
Confusing 'logs' with stopping containers.
3fill in blank
hard

Fix the error in the command to start services in detached mode.

Docker
docker compose up [1]
Drag options to blanks, or click blank then click option'
A-d
B--detach
C-D
D--down
Attempts:
3 left
💡 Hint
Common Mistakes
Using uppercase '-D' which is invalid.
Using '--down' which is not a valid flag.
4fill in blank
hard

Fill both blanks to specify a custom Compose file and start services.

Docker
docker compose -f [1] [2]
Drag options to blanks, or click blank then click option'
Acustom-compose.yml
Bup
Cdown
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'down' instead of 'up' to start services.
Not specifying the correct file name.
5fill in blank
hard

Fill both blanks to stop services, remove containers, and remove volumes.

Docker
docker compose [1] --remove-orphans [2]
Drag options to blanks, or click blank then click option'
Adown
B--volumes
C--force
Dup
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'up' instead of 'down' to stop services.
Forgetting to add the '--volumes' flag to remove volumes.