CentOS7 How to set docker's Storage Driver to OverlayFS?
What are the specific steps?
PHPz2017-05-16 13:19:42
==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
Add parameters:
--storage-driver=overlay
Restart
systemctl daemon-reload
systemctl restart docker