当前位置:首页 > linux运维 > 正文内容

使用自定义docker加速地址下载镜像

14324472938个月前 (11-17)linux运维1091

1.例如加速地址为:

https://docker.m.daocloud.io

2.配置docker加速地址

cat > /etc/docker/daemon.json <<EOF
> {"registry-mirrors": ["https://docker.m.daocloud.io"]}
> EOF

3.重启docker让加速地址生效

systemctl  daemon-reload 
systemctl  start  docker.service

4.使用加速地址下载docker

docker pull docker.m.daocloud.io/hello-world   #拉取镜像
docker tag docker.m.daocloud.io/hello-world hello-world   #拉取镜像自定义文件名

5.可以使用该开源项目搭建docker加速项目:https://github.com/jonssonyan/cf-workers-proxy

扫描二维码推送至手机访问。

版权声明:本文由爱开发博客发布,如需转载请注明出处。

本文链接:https://www.lovekf.cn/?id=36

分享给朋友:

“使用自定义docker加速地址下载镜像” 的相关文章

linux 基线配置常用命令

vi /etc/selinux/config SELINUX=disabled vi /etc/sysctl.conf net.ipv6.conf.all.disable_ipv6 =1 net.ipv6.conf.default.disable_ipv6&...

Docker配置可视化Portainer(汉化版)

docker pull 6053537/portainer-ce使用docker拉取portainer汉化版,拉取其他版本自行百度拉取后利用以下命令查询拉取的镜像IDdocker images# --restart=alaways 指的是随docke...

Xray VLESS+TCP+XTLS/TLS+Nginx+WebSocket 一键安装脚本 By wulabing

Xray VLESS+TCP+XTLS/TLS+Nginx+WebSocket 一键安装脚本 By wulabing

Xray 基于 Nginx 的 VLESS + XTLS 一键安装脚本,支持VLESS + TCP + TLS + Nginx + VLESS + TCP + XTLS / TLS + Nginx等多种组合一键安装,系统支持Debian 9+ / Ubuntu 18.04+ / Centos7+ /...

自建内网穿透服务器-基于Docker的FRP内网穿透部署

创建配置文件# 创建存放目录 sudo mkdir /etc/frp # 创建frps.ini文件 vim /etc/frp/frps.tomlfrps.toml文件配置内容[common] # 监听端口 bind_port&nb...

openvpn服务端一键搭建

需求: 搭建openvpn目的是安全访问内网和匿名访问其他网站,确保隐私信息不会泄露。 搭建方法: 1.复制以下脚本命名为“openvpn-install.sh”,在ssh中执行。 #!/bin/bash # shellcheck disable=SC1091,SC2164,SC2034,...

docker镜像无法下载的解决方案

要更换Docker镜像仓库,您需要编辑Docker的配置文件,并将镜像仓库地址更改为您想要使用的地址。以下是在CentOS系统上更换Docker镜像仓库的一般步骤:1.连接到您的CentOS服务器,并使用文本编辑器(如vi或nano)打开Docker的配置文件/etc/docker/daemon.j...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。