标题Docker更改默认镜像存储路径的方式
一:yum install docker 方式安装。
vi /lib/systemd/system/docker.service
在ExecStart参数里加入: --graph=/data/docker/lib/docker

二:修改镜像源
vi /etc/docker/daemon.json
"registry-mirrors": ["https//registry.docker-cn.com"]
重启:
systemctl daemon-reload
systemctl restart docker
systemctl enable docker