当前位置:首页 > linux运维

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

14324472932年前 (2024-11-17)linux运维2015

1.例如加速地址为:

https://docker.1ms.run

2.配置docker加速地址

cat > /etc/docker/daemon.json <<EOF
> {"registry-mirrors": ["https://docker.1ms.run"]}
> EOF

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

systemctl  daemon-reload 
systemctl  start  docker.service

4.使用加速地址下载docker

docker pull docker.1ms.run/hello-world   #拉取镜像
docker tag docker.1ms.run/hello-world hello-world   #拉取镜像自定义文件名

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

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

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

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

分享给朋友:

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

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+ /…

nas 里好用的docker 推荐

</head><body>1.adguard/adguardhome这是一个广告拦截项目,具备dns功能,特别适合在局域网部署,防止dns污染和用于做开发测试的时候对测试域名进行host。   --restart unless-stop…

openvpn服务端一键搭建

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

aria2配置文件和bt-tracker定期更新脚本

# # https://github.com/P3TERX/aria2.conf # File name:aria2.conf # Description: Awesome Aria2 configuration file # Version: 2021.09.15 # # Copyright (c…

docker 安装

1.卸载旧版docker sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \…

CentOS优化手册

1. 调整 journal 存储设置( 解决systemd 或者 systemd-journald 进程占用大量 CPU 或内存资源的情况)编辑 /etc/systemd/journald.conf 文件,并更改 Storage 参数。例如,将其从 persistent 改为 volatile 或…

发表评论

访客

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