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]# 
相关推荐
nuo53420210 小时前
基础 6 —— Docker 容器数据卷
docker·容器
Sinclair10 小时前
安企CMS的安装-Docker 部署
运维·docker·容器
要开心吖ZSH11 小时前
AI医疗分诊与健康咨询助手agent开发——(4-2)从零到一:我给AI医疗分诊助手加了个“知识库大脑“,终于搞懂了RAG是什么
java·docker·agent·医疗·rag
汪汪大队u12 小时前
【无标题】
运维·docker·kubernetes·prometheus
spider_xcxc14 小时前
Docker Compose 容器通信详解:同一个 Compose 文件才能互通吗?
docker·容器·k8s·容器化·容器网络
BaiduPHP16 小时前
docker异常断电,出现docker服务,启动失败
docker·容器·eureka
梦梦代码精18 小时前
多商户商城技术选型实测:ThinkPHP 8与Vue 3结合,B2B2C架构下的开源实践
docker·开源·代码规范
寒冰碧海18 小时前
大模型部署从0到1(三):单机多卡 vLLM 部署Qwen3.6实战|Docker Compose 一键启动
docker·容器·vllm
chexus19 小时前
Docker 镜像瘦身:使用 Maven 拆分 Jar 包
docker·maven·jar
梦梦代码精19 小时前
智能体应用开发平台技术选型:一个自带商业模块的开源方案调研
人工智能·docker·开源