Home  >  Article  >  Operation and Maintenance  >  How to use domestic docker image

How to use domestic docker image

angryTom
angryTomOriginal
2020-03-31 16:47:032788browse

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 <<-&#39;EOF&#39;
{    "registry-mirrors": ["https://123456abcd.mirror.aliyuncs.com"]
}

4. Restart the docker daemon

$ sudo systemctl daemon-reload
$ sudo systemctl restart docker

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!

Statement:
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 admin@php.cn