vim /etc/docker/daemon.json
## add this info
{
"data-root": "/www/docker"
}
systemctl restart docker
查看路径是否已经更改
docker info | grep docker-root
vim /etc/docker/daemon.json
## add this info
{
"data-root": "/www/docker"
}
systemctl restart docker
查看路径是否已经更改
docker info | grep docker-root
本文标题:修改docker默认镜像路径
本文链接:https://www.haomeiwen.com/subject/kwstoktx.html
网友评论