0
0
Dockerdevops~10 mins

System prune for cleanup in Docker - Interactive Code Practice

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

Complete the command to remove all unused Docker objects.

Docker
docker system [1]
Drag options to blanks, or click blank then click option'
Arun
Bprune
Cbuild
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'docker system build' which builds images, not cleans up.
2fill in blank
medium

Complete the command to remove unused Docker images only.

Docker
docker image [1]
Drag options to blanks, or click blank then click option'
Arun
Bpull
Cprune
Dpush
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'docker image run' which runs containers, not cleans images.
3fill in blank
hard

Fix the error in the command to prune all unused Docker objects including volumes.

Docker
docker system prune [1]
Drag options to blanks, or click blank then click option'
A--volumes
B--all
C--force
D--interactive
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--all' which removes all unused images, not volumes.
4fill in blank
hard

Fill both blanks to prune unused containers and images without confirmation.

Docker
docker system prune [1] [2]
Drag options to blanks, or click blank then click option'
A--force
B--all
C--volumes
D--filter
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--volumes' which removes volumes, not required here.
5fill in blank
hard

Fill all three blanks to prune unused containers, images, and volumes without confirmation.

Docker
docker system prune [1] [2] [3]
Drag options to blanks, or click blank then click option'
A--force
B--all
C--volumes
D--filter
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--filter' which is for selective pruning, not full cleanup.