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
[[email protected] ~]#docker info | grep -i root Docker Root Dir: /data/docker
原文地址:https://www.cnblogs.com/dinglin1/p/8940050.html
时间: 2024-11-05 20:30:22