Docker 0.7 introduces multiple storage backends, and one of them is devicemapper
. How can I check which storage backend it is using, and force it to use devicemapper
if it is not already?
Device Mapper is a kernel-based framework that underpins many advanced volume management technologies on Linux. Docker's devicemapper storage driver leverages the thin provisioning and snapshotting capabilities of this framework for image and container management.
Each Docker storage driver is based on a Linux filesystem or volume manager. Be sure to follow existing best practices for operating your storage driver (filesystem or volume manager) on top of your shared storage system.
To see the storage driver being used, issue the docker info command.
To check which one it is currently using:
sudo docker info|grep 'Storage Driver:'
You can force docker to use devicemapper
by adding -s=devicemapper
to the docker daemon's command line arguments (the docker daemon will be run as a service on boot, so this will involve modifying a file in /etc
, probably /etc/default/docker
, or if that doesn't exist, /etc/sysconfig/docker
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With