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]# 
相关推荐
Lyra_Infra12 小时前
MySQL Docker 误删恢复:binlog PITR
mysql·docker·命令行
wxchyy15 小时前
手把手教你入门云计算(二):这些技术改变了世界,你也能轻松掌握
hadoop·阿里云·docker·云原生·华为云·云计算·运维开发
名字还没想好☜15 小时前
Prometheus 告警实战:写 alerting rules、用 Alertmanager 做路由分组与抑制
运维·前端·javascript·docker·kubernetes·prometheus
请你吃div16 小时前
Node 后端项目 Docker 自动部署教程(GitHub + 宝塔 + Self-hosted Runner)
后端·docker·node.js
百年੭ ᐕ)੭*⁾⁾16 小时前
Redash部署指南(Windows docker部署)
大数据·windows·docker·数据可视化·redash
2401_8346369917 小时前
Docker 容器化技术全解:从镜像构建到容器编排的完整教案2
运维·docker·容器
伞伞悦读20 小时前
【第12期】Windows 开发环境备份与恢复:软件、环境变量、Git、conda 和 Docker 卷完整方案
git·docker·conda
虎王物联21 小时前
Docker WASM 边缘计算:12ms 冷启动如何重塑 IoT 网关部署
物联网·docker·容器·边缘计算·wasm
李少兄1 天前
Linux 服务器从零部署 kkFileView 完全指南(Docker 方案)
linux·服务器·docker
2301_旺仔1 天前
【Docker 镜像仓库】
docker·云原生·仓库