迁移Docker镜像
迁移到:
/data/docker/lib
在/etc/systemd/system/docker.service.d/devicemapper.conf里面配置,没有的话创建文件
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd --graph=/data/docker/lib
停机docker
systemctl stop docker
cp -R /var/lib/docker/* /data/docker/lib/
重载配置,重启docker
systemctl daemon-reload
systemctl restart docker
systemctl enable docker
本文来自博客园,作者:数据驱动,转载请注明原文链接:https://www.cnblogs.com/shun7man/p/14110106.html