centos 7 修改 docker 存储位置

Posted on Posted in docker

centos 7 修改 docker 存储位置

默认存储位置 /var/lib/docker

vim /usr/lib/systemd/system/docker.service
# 更改下面的一行
ExecStart=/usr/bin/dockerd --graph /usr/local/docker

systemctl daemon-reload
systemctl restart docker.service
» 转载请注明来源:呢喃 » centos 7 修改 docker 存储位置

Leave a Reply

Your email address will not be published. Required fields are marked *

seventeen − 15 =