Install Docker also encounter foreign network slow problem, fortunately the domestic has very good mirror, recommend daoclound, install Docker command is:
Curl-ssl Https://get.daocloud.io/docker | Sh
After the installation is complete, run the following script to add the current user to the Docker group
sudo usermod-ag Docker Studyzy
Re-log on to the current user, and then modify the Docker service configuration (/etc/default/docker file).
sudo vi/etc/default/docker
Add the following:
docker_opts= "$DOCKER _opts-h tcp://0.0.0.0:2375-h unix:///var/run/docker.sock--api-cors-header= ' *"
Next you need to set up a domestic Docker mirror address, you need to register an account, and then on the accelerator page to set up a Docker mirror script, accelerator page is:
Https://www.daocloud.io/mirror the script I provided is:
Curl-ssl https://get.daocloud.io/daotools/set_mirror.sh | Sh-s Http://d4cc5789.m.daocloud.io
Restart the Docker service after you finish running the script
sudo service docker restart