停止docker服务
[root@docker]# systemctl stop docker
创建devicemapper目录
[root@docker]# mkdir-p/docker/devicemapper/devicemapper
进入刚创建的devicemapper目录
[root@docker~]#cd /docker/devicemapper/devicemapper/
使用dd创建data文件,这里创建500G
[root@dockerdevicemapper]#ddif=/dev/zeroof=databs=1Gcount=0seek=500
启动docker服务
[root@docker~]# systemctl start docker
原文链接:https://www.f2er.com/centos/381946.html