Home  >  Article  >  Operation and Maintenance  >  How to configure accelerator for docker

How to configure accelerator for docker

WJ
WJOriginal
2020-06-08 16:58:182330browse

How to configure accelerator for docker

#1. Create a Docker configuration file.

sudo vim /etc/docker/daemon.json

2. Write the configuration file.

{  "registry-mirrors": [    "此处写镜像源地址"
  ]
}

Docker image source address:

3. 重新加载配置文件并重启Docker。

sudo systemctl daemon-reload
sudo systemctl restart docker

可以使用以下命令验证镜像源是否修改成功。

sudo docker info

相关推荐:docker教程

Official domestic image https://registry.docker-cn.com
##NetEase http://hub-mirror.c.163.com
University of Science and Technology of China https: //docker.mirrors.ustc.edu.cn

The above is the detailed content of How to configure accelerator for docker. 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