赞
踩
通过修改daemon配置文件/etc/docker/daemon.json来使用加速器
- #1、创建docker目录(已有忽略)
- sudo mkdir -p /etc/docker
-
- #2、通过tee输出daemon.json
- sudo tee /etc/docker/daemon.json <<-'EOF'
- {
- "registry-mirrors": [
- "https://docker.m.daocloud.io",
- "https://huecker.io",
- "https://dockerhub.timeweb.cloud",
- "https://noohub.ru",
- "https://vlgh0kqj.mirror.aliyuncs.com"
- ]
- }
- EOF
-
- #3、重新加载配置文件并重启docker服务
- sudo systemctl daemon-reload
- sudo systemctl restart docker
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。