This blog is only for the ubuntu16.04 environment, other environments are not verified
1. Mirror data created by docker is stored in /var/lib/docker by default
2. After installing docker, you can view the information through docker info
3. Modify the storage path
sudo gedit /etc/default/docker
Add DOCKER_OPTS="-g /home/yao/ssd_1T/docker"
(/Home/yao/ssd_1T/docker is the path you want to modify)
4. Restart docker
service docker restart
5. Check whether to modify ok
docker info
It mainly depends on the two fields of Root Dir and Docker Root Dir, whether it is your modified path /home/yao/ssd_1T/docker/aufs and /home/yao/ssd_1T/docker