Challenge - 5 Problems
Storage Driver Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2: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 infoAttempts:
2 left
💡 Hint
Look for the line starting with 'Storage Driver:' in the output.
✗ Incorrect
The 'docker info' command shows the current storage driver under the 'Storage Driver:' line. 'overlay2' is the default and most common on modern Linux systems.
❓ Configuration
intermediate2: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?
Attempts:
2 left
💡 Hint
Docker daemon configuration uses JSON format in daemon.json.
✗ Incorrect
The Docker daemon reads /etc/docker/daemon.json for configuration. The correct key to set the storage driver is 'storage-driver'.
❓ Troubleshoot
advanced2: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?
Attempts:
2 left
💡 Hint
Storage drivers depend on kernel modules.
✗ Incorrect
The 'aufs' driver requires kernel support. If the kernel lacks aufs modules, Docker cannot use it and will fail to start with that error.
✅ Best Practice
advanced2: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?
Attempts:
2 left
💡 Hint
Consider stability, performance, and kernel support.
✗ Incorrect
Overlay2 is the default and recommended driver for modern Linux kernels due to its performance and stability.
🧠 Conceptual
expert2: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?
Attempts:
2 left
💡 Hint
Storage drivers use different ways to store data on disk.
✗ Incorrect
Changing the storage driver changes how Docker stores images and containers. Existing data is not compatible and becomes inaccessible.