docker数据迁移

systemctl stop docker

yum install rsync -y

mkdir -p /data/docker

# 注意这个路径 { "data-root": "/data/docker/docker" }
rsync -avz /var/lib/docker /data/docker 

# 腾讯的 https://mirror.ccs.tencentyun.com cat > /etc/docker/daemon.json << EOF { "data-root": "/data/docker/docker", "registry-mirrors": ["https://hub-mirror.c.163.com"] } EOF systemctl daemon-reload #systemctl reset-failed docker.service systemctl restart docker docker info

docker数据迁移

上一篇:KVO实现自定义文件复制进度展示


下一篇:c3p0的配置及简单应用