标签:bnu top ice roo mct tar 启动 dir 默认
环境:ubnutu
vim /etc/docker/daemon.json { "graph":"/data/docker-data" }
docker数据默认存放路径为:/var/lib/docker,我这里转移到/data/docker-data 和daemon.json中一致
systemctl stop docker.service systemctl daemon-reload systemctl start docker.service
docker info
可以看到Root Dir已经修改为目标位置,原来镜像也可以正常启动
标签:bnu top ice roo mct tar 启动 dir 默认
原文地址:https://www.cnblogs.com/cyh1282656849/p/14678796.html