0
0
Dockerdevops~10 mins

Storage driver options 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 set the storage driver to overlay2 when starting the Docker daemon.

Docker
dockerd --storage-driver=[1]
Drag options to blanks, or click blank then click option'
Abtrfs
Baufs
Coverlay2
Ddevicemapper
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'aufs' which is deprecated on many systems.
Using 'devicemapper' without proper configuration.
2fill in blank
medium

Complete the Docker daemon configuration file snippet to specify the storage driver as btrfs.

Docker
{
  "storage-driver": "[1]"
}
Drag options to blanks, or click blank then click option'
Abtrfs
Boverlay
Caufs
Ddevicemapper
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'overlay' instead of 'overlay2' which is the newer version.
Forgetting to restart the Docker daemon after changing the config.
3fill in blank
hard

Fix the error in the command to start Docker with devicemapper storage driver.

Docker
dockerd --storage-driver=[1]
Drag options to blanks, or click blank then click option'
Aoverlay2
Baufs
Cbtrfs
Ddevicemapper
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'devicemapper' without proper kernel support.
Typing 'device-mapper' or other incorrect spellings.
4fill in blank
hard

Fill both blanks to create a Docker daemon config snippet that sets the storage driver to overlay2 and enables experimental features.

Docker
{
  "storage-driver": "[1]",
  "experimental": [2]
}
Drag options to blanks, or click blank then click option'
Aoverlay2
Btrue
Cfalse
Daufs
Attempts:
3 left
💡 Hint
Common Mistakes
Setting experimental to false when intending to enable it.
Using an unsupported storage driver.
5fill in blank
hard

Fill all three blanks to create a Docker daemon config snippet that sets the storage driver to devicemapper, disables live-restore, and sets the log level to info.

Docker
{
  "storage-driver": "[1]",
  "live-restore": [2],
  "log-level": "[3]"
}
Drag options to blanks, or click blank then click option'
Aoverlay2
Bfalse
Cinfo
Ddevicemapper
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing live-restore true/false values.
Using incorrect log level strings.