0
0
Dockerdevops~20 mins

Storage driver options in Docker - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Storage Driver Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Identify the storage driver used by Docker
You run the command docker info to check Docker's storage driver. Which output line correctly shows the storage driver in use?
Docker
docker info
AStorage Driver: btrfs
BStorage Driver: aufs
CStorage Driver: overlay2
DStorage Driver: devicemapper
Attempts:
2 left
💡 Hint
Look for the line starting with 'Storage Driver:' in the output.
Configuration
intermediate
2:00remaining
Configure Docker to use a specific storage driver
You want Docker to use the 'devicemapper' storage driver. Which configuration file and setting correctly applies this change?
AIn /etc/docker/daemon.json, set {"driver": "devicemapper"}
BIn /etc/docker/daemon.conf, set storage_driver=devicemapper
CIn /etc/docker/config.json, set "driver": "devicemapper"
DIn /etc/docker/daemon.json, set {"storage-driver": "devicemapper"}
Attempts:
2 left
💡 Hint
Docker daemon configuration uses JSON format in daemon.json.
Troubleshoot
advanced
2:00remaining
Troubleshoot Docker storage driver error on startup
Docker fails to start and logs an error about the storage driver 'aufs' not being supported. What is the most likely cause?
AThe Linux kernel does not have aufs support enabled or installed
BThe Docker daemon configuration file is missing
CThe Docker client version is incompatible with the daemon
DThe Docker image is corrupted
Attempts:
2 left
💡 Hint
Storage drivers depend on kernel modules.
Best Practice
advanced
2:00remaining
Choose the best storage driver for production Docker on modern Linux
Which storage driver is recommended for most production Docker setups on modern Linux distributions?
Aoverlay2
Baufs
Cdevicemapper
Dbtrfs
Attempts:
2 left
💡 Hint
Consider stability, performance, and kernel support.
🧠 Conceptual
expert
2:00remaining
Understand the impact of changing Docker storage driver
What happens to existing Docker images and containers if you change the storage driver in Docker's configuration and restart the daemon?
ADocker deletes all images and containers but keeps volumes intact
BExisting images and containers become inaccessible because storage formats differ
CDocker automatically converts all images and containers to the new storage driver format
DNothing changes; images and containers remain usable without interruption
Attempts:
2 left
💡 Hint
Storage drivers use different ways to store data on disk.