How to change docker daemon root directory in CentOS7
Edit /etc/docker/daemon.json
.
Put only the following content:
{
"graph": "/data/docker"
}
Restart docker daemon: sudo service docker restart
Edit /etc/docker/daemon.json
.
Put only the following content:
{
"graph": "/data/docker"
}
Restart docker daemon: sudo service docker restart