I’m looking for some input on Docker storage configuration for production CentOS 7.1 systems. I understand that the default Docker storage config that ships with CentOS 7 is not recommended for production use and I’ve been researching best practices. The recommended solution looks to be running Docker on top of an LVM thin pool. After adding a new disk, I was able to make this work in my development environment (see commands below).
Any opinions about this? How is everyone else configuring Docker storage for production systems? What have your experiences been like so far?
I installed Docker 1.12 on a CentOS 7.2 host, and docker-storage-setup is nowhere to be found.
Searching with yum provides */docker-storage-setup only shows utilities from the CentOS extras repository, not from the Docker repo. None of the RPMs at https://yum.dockerproject.org/repo/main/centos/7/ seem to provide docker-storage-setup.
I think docker-storage-setup is installed automatically on red-hat and fedora there is no more additional package. You can find it with (at least on my fedora)
systemctl status docker-storage-setup
before starting the service and docker for the first time you typically have to add the volume group you plan to use in /etc/sysconfig/docker-storage-setup
overlay2 is now the preferred Linux storage driver… and not devicemapper.
devicemapper is supported, but requires direct-lvm for production environments, because loopback-lvm , while zero-configuration, has very poor performance. devicemapper was the recommended storage driver for CentOS and RHEL, as their kernel version did not support overlay2 . However, current versions of CentOS and RHEL now have support for overlay2 , which is now the recommended driver.