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]# 
相关推荐
牛奔2 小时前
在 Docker 容器里测试外部域名延迟
运维·docker·容器
颖火虫盟主3 小时前
Claude Code Cron 定时任务:从入门到自动化
运维·docker·自动化
IT策士3 小时前
深入浅出:使用 Gunicorn + Nginx + Docker 将 Django 项目部署到云服务器
nginx·docker·gunicorn
jran-3 小时前
Docker 数据卷&应用部署
运维·docker·容器
jran-4 小时前
Docker dockerfile镜像制作&compose服务编排&私有仓库
java·docker·容器
CCPC不拿奖不改名4 小时前
PostgreSQL数据库部署linux服务器流程
linux·服务器·数据库·windows·python·docker·postgresql
cgsthtm4 小时前
openEuler release 24.03 (LTS-SP2) 安装 docker
docker·systemctl·dnf·openeuler 24.03
古城小栈5 小时前
K8s 核心知识 讲解
docker·容器·kubernetes
杨云龙UP5 小时前
MySQL主库高峰期备份引发504故障:从库手动切换接管 + 主从恢复同步 + Docker版DB2重启实战_2026-05-17
linux·运维·数据库·mysql·docker·容器·centos