[root@w-2 ~]# systemctl stop docker
[root@w-2 ~]# vim /etc/docker/daemon.json
增加:"graph":"/home/docker"

[root@w-2 ~]# cp -r /var/lib/docker /home
[root@w-2 ~]# systemctl daemon-reload
[root@w-2 ~]# systemctl restart docker

修改docker镜像的存储地址的方法(--graph)_javascript