CentOS7 How to set docker's Storage Driver to OverlayFS? What are the specific steps?
==First of all, you need to upgrade to CentOS7.2. An XFS bug has been fixed in the 7.2 system. ==
echo "overlay" > /etc/modules-load.d/overlay.conf # lsmod | grep over overlay 42451 0 reboot
Create folder
mkdir -p /etc/systemd/system/docker.service.d
Add parameters:
cat >/etc/systemd/system/docker.service.d/override.conf <<E [Service] ExecStart= ExecStart=/usr/bin/docker daemon --storage-driver=overlay -H fd:// E
Restart
systemctl daemon-reload systemctl restart docker
echo "overlay" > /etc/modules-load.d/overlay.conf lsmod | grep over reboot
rm -rf /var/lib/docker
vi /usr/lib/systemd/system/docker.service
Modify the configuration: Find the following line
ExecStart=/usr/bin/dockerd
--storage-driver=overlay
==First of all, you need to upgrade to CentOS7.2. An XFS bug has been fixed in the 7.2 system. ==
docker 1.11
Add OverlayFS to the module directory
Configure Docker Daemon to start with OverlayFS:
Create folder
Add parameters:
Restart
docker 1.12
Add OverlayFS to the module directory
Stop docker service
Modify docker configuration file
Modify the configuration:
Find the following line
Add parameters:
Restart