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?
== Commands ==
vgcreate docker-storage /dev/sdb1 /dev/sdb2
lvcreate -n docker-pool -L 2G docker-storage
lvcreate -n docker-poolmeta -L 500M docker-storage
lvconvert --type thin-pool --poolmetadata docker-storage/docker-poolmeta docker-storage/docker-pool
/usr/bin/docker daemon \
-H fd:// \
-H tcp://0.0.0.0:2375 \
--insecure-registry hostname.com:5000 \
--storage-opt dm.fs=xfs \
Some blogs I've been reading:
Friends Don't Let Friends Run Docker on Loopback in Production
Managing Storage with Docker Formatted Containers on Red Hat Enterprise Linux