How to use domestic docker image

angryTom
Release: 2020-03-31 16:47:03
Original
2333 people have browsed it

How to use domestic docker image

How to use domestic docker image

1. Register and log in to the Alibaba Cloud Developer Platform, Alibaba Cloud-Developer Platform: https:/ /dev.aliyun.com/

2. After registering and logging in, click "Create my container image". Then you will come to the Alibaba Cloud service panel and click "Image Accelerator". (Enter the password you need to use when logging in to Docker according to the prompts (it can be changed later). The username is the username used to log in to Alibaba Cloud.)

Recommended learning: CentOS usage tutorial

How to use domestic docker image

In the page that appears, you can get an exclusive mirror acceleration address, similar to "https://1234abcd.mirror.aliyuncs.com".
Configure your own Docker accelerator according to the "operation document" information on the page.

3. For users whose Docker client version is greater than 1.10.0, you can use the accelerator by modifying the daemon configuration file /etc/docker/daemon.json

sudo tee /etc/docker/daemon.json <<-'EOF'
{    "registry-mirrors": ["https://123456abcd.mirror.aliyuncs.com"]
}
Copy after login

4. Restart the docker daemon

$ sudo systemctl daemon-reload
$ sudo systemctl restart docker
Copy after login

For more related tutorials, please pay attention to the docker tutorial column on the PHP Chinese website.

The above is the detailed content of How to use domestic docker image. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!