Installing Docker mirrors with a domestic mirror library

Source: Internet
Author: User
Tags curl

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.