vim /etc/docker/daemon.json
## add this info
{
"data-root": "/www/docker"
}
systemctl restart docker
查看路徑是否已經(jīng)更改
docker info | grep docker-root
vim /etc/docker/daemon.json
## add this info
{
"data-root": "/www/docker"
}
systemctl restart docker
查看路徑是否已經(jīng)更改
docker info | grep docker-root