0
0
Dockerdevops~5 mins

Storage driver options in Docker - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a Docker storage driver?
A Docker storage driver manages how images and containers store and share data on the host system's filesystem.
Click to reveal answer
beginner
Name two common Docker storage drivers.
Overlay2 and aufs are two common Docker storage drivers used to manage container file systems.
Click to reveal answer
intermediate
Why might you choose the overlay2 storage driver over aufs?
Overlay2 is preferred because it is simpler, faster, and supported by most modern Linux kernels, while aufs may require extra setup.
Click to reveal answer
intermediate
How do you specify a storage driver when starting the Docker daemon?
You specify it with the --storage-driver option in the Docker daemon configuration or command line, for example: dockerd --storage-driver=overlay2
Click to reveal answer
advanced
What happens if you change the Docker storage driver on an existing system?
Changing the storage driver can cause existing images and containers to become unusable because each driver uses a different format for storing data.
Click to reveal answer
Which Docker storage driver is recommended for most modern Linux systems?
Adevicemapper
Bbtrfs
Coverlay2
Dvfs
What command option sets the storage driver for the Docker daemon?
A--storage
B--driver-storage
C--driver
D--storage-driver
What is a risk of switching storage drivers on a Docker host with existing containers?
AContainers may stop working due to incompatible storage formats
BDocker will automatically migrate all data safely
CNo impact, containers continue as normal
DDocker will delete all images automatically
Which storage driver uses a copy-on-write mechanism to save space?
Aoverlay2
Bvfs
Cdevicemapper
Dnone
If your Linux kernel does not support overlay2, which driver might you use?
Avfs
Baufs
Czfs
Doverlay2
Explain what a Docker storage driver does and why it matters.
Think about how Docker saves container data on your computer.
You got /4 concepts.
    Describe the steps to change the Docker storage driver and what precautions you should take.
    Changing storage drivers is like changing how your files are saved; it needs care.
    You got /4 concepts.