docker默认文件存储路径放置在/var/lib/docker下,可通过docker info查看docker root的返回值
#systemctl stop docker #cp -rf /var/lib/docker /data/ #mv /var/lib/docker /var/lib/docker.bak #ln -sf /data/docker /var/lib/docker
[root@dock ~]#docker info | grep -i root Docker Root Dir: /data/docker
原文:https://www.cnblogs.com/dinglin1/p/8940050.html