Docker on CentOs7.2+ : How to update storage driver to overlay2

by cdelaitre
GNU/Linux ◆ xterm-color ◆ bash 13655 views

Check current docker version

docker –version

Check current docker storage-driver

docker info |grep -i storage

Check current Docker directory ftype (default : /var/lib/docker)

xfs_info /home/docker |grep ftype=1

Check yum-plugin-ovl installed

yum install yum-plugin-ovl

Stop docker

systemctl stop docker

Add overlay2 to daemon.json

touch /etc/docker/daemon.json vim /etc/docker/daemon.json

{ “storage-driver”: “overlay2”, “storage-opts”: [

"overlay2.override_kernel_check=true"

] }

BackUp Current Docker directory (default : /var/lib/docker)

cd /home/docker mkdir /tmp/BACKUP mv * /tmp/BACKUP/

Start docker

systemctl start docker

Check new docker storage-driver

docker info |grep -i storage