0
0
Dockerdevops~10 mins

Creating and managing volumes in Docker - Interactive Practice

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

Complete the command to create a Docker volume named mydata.

Docker
docker volume [1] mydata
Drag options to blanks, or click blank then click option'
Ainspect
Brm
Ccreate
Dlist
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'rm' instead of 'create' deletes volumes instead of creating.
Using 'list' shows volumes but does not create.
Using 'inspect' shows details but does not create.
2fill in blank
medium

Complete the command to list all Docker volumes on your system.

Docker
docker volume [1]
Drag options to blanks, or click blank then click option'
Acreate
Bls
Crm
Dinspect
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'create' tries to make a new volume instead of listing.
Using 'rm' deletes volumes instead of listing.
Using 'inspect' shows details of one volume, not the list.
3fill in blank
hard

Fix the command to remove a Docker volume named olddata.

Docker
docker volume [1] olddata
Drag options to blanks, or click blank then click option'
Arm
Bls
Ccreate
Dinspect
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'create' tries to make a volume instead of deleting.
Using 'ls' lists volumes but does not delete.
Using 'inspect' shows details but does not delete.
4fill in blank
hard

Fill both blanks to inspect details of a Docker volume named myvolume.

Docker
docker volume [1] [2]
Drag options to blanks, or click blank then click option'
Ainspect
Brm
Cmyvolume
Dls
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'rm' deletes the volume instead of inspecting.
Using 'ls' lists volumes but does not inspect.
Swapping the order of command and volume name.
5fill in blank
hard

Fill all three blanks to run a container named webapp that uses a volume named data_vol mounted at /app/data.

Docker
docker run -d --name [1] -v [2]:[3] nginx
Drag options to blanks, or click blank then click option'
Awebapp
Bdata_vol
C/app/data
Dmycontainer
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up container name and volume name.
Using a wrong path for the mount point.
Forgetting the colon ':' between volume and path.