0
0
Dockerdevops~10 mins

Why monitoring containers matters in Docker - Test Your Understanding

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

Complete the command to list all running Docker containers.

Docker
docker [1]
Drag options to blanks, or click blank then click option'
Arun
Bps
Cimages
Dstop
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'docker images' lists images, not containers.
Using 'docker run' starts a container, not lists them.
2fill in blank
medium

Complete the command to check the logs of a container named 'webapp'.

Docker
docker logs [1]
Drag options to blanks, or click blank then click option'
Awebapp
Bstart
Cstop
Dps
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' or 'stop' instead of the container name.
Using 'ps' which lists containers, not logs.
3fill in blank
hard

Fix the error in the command to monitor container stats continuously.

Docker
docker [1]
Drag options to blanks, or click blank then click option'
Aimages
Brm
Cstats
Dstop
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'stop' or 'rm' which stop or remove containers.
Using 'images' which lists images, not stats.
4fill in blank
hard

Fill both blanks to create a command that filters running containers by name 'db'.

Docker
docker ps --filter [1]=[2]
Drag options to blanks, or click blank then click option'
Aname
Bstatus
Cdb
Dimage
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'status' or 'image' as filter keys incorrectly.
Using wrong filter values.
5fill in blank
hard

Fill all three blanks to create a command that shows logs of container 'api' with timestamps and follows output.

Docker
docker logs [1] [2] [3]
Drag options to blanks, or click blank then click option'
A--timestamps
Bapi
C--follow
D--tail
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up option order or missing container name.
Using '--tail' without a number.