O'Reilly logo

Orchestrating Docker by Shrikrishna Holla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring Docker to use a different storage driver

Before using a different storage driver, back up all your images with docker save and stop the docker daemon. Once you have backed up all your important images, remove /var/lib/docker. Once you change the storage driver, you can restore the saved images.

We are now going to change our default storage driver, AUFS, to two alternative storage drivers – devicemapper and btrfs.

Using devicemapper as the storage driver

It is easy to switch to the devicemapper driver. Just start the docker daemon with the -s option:

$ docker -d -s devicemapper

Additionally, you can provide various devicemapper driver options with the --storage-opts flag. The various available options and examples for the devicemapper ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required