How to configure accelerator for docker

WJ
Release: 2020-06-08 16:58:18
Original
2254 people have browsed it

How to configure accelerator for docker

#1. Create a Docker configuration file.

sudo vim /etc/docker/daemon.json
Copy after login

2. Write the configuration file.

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

Docker image source address:

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

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

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

sudo docker info
Copy after login

相关推荐: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!

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