overlay2 requires high core support, low core uses overlay
1. Open the file system ftype
umount /dev/mapper/centos-home //The path of the device can be found in xfs_info
//If the prompt device is busy
umount -l /dev/mapper/centos-home //Force uninstall and restart at the same time
mkfs.xfs -n ftype=1 /dev/mapper/centos-home // reformat the device, here
mount /dev/mapper/centos-home /home //remount
xfs_info /home //View the results
2. Docker configuration specifies storage-driver
cat /etc/docker/daemon.json
{
"storage-driver":"overlay2",
"data-root":"/data/docker/lib",
"exec-root":"/data/docker/run",
"registry-mirrors": ["https://mirror.ccs.tencentyun.com","http://hub-mirror.c.163.com","https://docker.mirrors.ustc.edu. cn"]
}
Post comment 取消回复