rocky linux 8.10 下的 podman 配置镜像加速

通过毫秒镜像提供的镜像加速,见https://mdoc.cc/mliev/1ms/v1.0.0/18,如下:

bash 复制代码
[root@localhost ~]# cd /etc/containers/
certs.d/           oci/               registries.conf.d/ registries.d/      systemd/           
[root@localhost ~]# cd /etc/containers/registries.conf.d
[root@localhost registries.conf.d]# ll
total 472
-rw-r--r--. 1 root root   6387 Mar 18 00:34 000-shortnames.conf
-rw-r--r--. 1 root root 463829 Mar 18 00:34 001-rhel-shortnames.conf
-rw-r--r--. 1 root root    497 Mar 18 00:34 002-rhel-shortnames-overrides.conf
-rw-r--r--. 1 root root    264 May 17 14:15 custom.conf
[root@localhost registries.conf.d]# vim custom.conf
[root@localhost registries.conf.d]# cat custom.conf
unqualified-search-registries = ["docker.io","ghcr.io"]

[[registry]]
prefix = "docker.io"
location = "docker.io"

[[registry.mirror]]
location = "docker.1ms.run"

[[registry]]
prefix = "ghcr.io"
location = "ghcr.io"

[[registry.mirror]]
location = "ghcr.1ms.run"
[root@localhost registries.conf.d]# podman pull nginx
Trying to pull docker.io/library/nginx:latest...
Getting image source signatures
Copying blob 030365c1a354 skipped: already exists  
Copying blob 834a05acfff4 skipped: already exists  
Copying blob 735e1c628373 skipped: already exists  
Copying blob 57fb71246055 skipped: already exists  
Copying blob 60ad0c2ccfc6 skipped: already exists  
Copying blob 1bb34ee717a4 skipped: already exists  
Copying blob 9f7bde970101 skipped: already exists  
Copying config 6f8edba05e done   | 
Writing manifest to image destination
6f8edba05e380a2dcd013045301ccc3485623f8e09d1faf34d30376eec576889
[root@localhost registries.conf.d]# 
相关推荐
Patrick_Wilson3 天前
从「改个端口」到 502:Next.js on k8s 的容器端口、Service 映射与 env 覆盖
docker·kubernetes·next.js
Suroy3 天前
DockerView-Go:用 Go 写一个终端 Docker 监控工具,顺便做了个 Web 仪表盘
docker
云恒要逆袭3 天前
运行你的第一个Docker容器
后端·docker·容器
宋均浩4 天前
# Docker 镜像瘦身实战:从 1.2G 到 80MB 的五个优化步骤
ci/cd·docker
程序员老赵5 天前
10 分钟部署 OpenCode:Docker 一键安装,浏览器打开就能用 AI 写代码(附完整命令与排错)
docker·容器·ai编程
WangMingHua1115 天前
LM Studio Docker 部署——本地大模型一键启动
docker
曲幽6 天前
别再用网页翻译看源码了!你的私人翻译神器LibreTranslate,部署避坑指南来了
python·docker·web·pot·translate·libretranslate·arogstranslate
武子康8 天前
调查研究-183 Apple container:Mac 上用轻量 VM 跑 Linux 容器,Swift 会改写本地容器体验吗?
docker·容器·apple
Alsn8611 天前
等待学习-学习目录:Docker 容器安全攻防
学习·安全·docker
程序员老赵11 天前
服务器没有桌面?Docker 跑个 Chrome,浏览器就能远程用
docker·容器·devops