- 安装
yum install -y podman
- 配置加速镜像
cp /etc/containers/registries.conf{,.bak}
编辑registries.conf文件
vim /etc/containers/registries.conf
在末尾添加以下行,把上面的内容都注悉掉
unqualified-search-registries = ["docker.io"] [[registry]] prefix = "docker.io" location = "xxxxxxxx.mirror.aliyuncs.com" #根据自己的加速镜像地址填
- 拉取镜像
podman pull centos
- 查看本地镜像
podman images
- 新建容器
podman run -d --name test -t xxxx/centos /bin/bash
- 查看容器情况
podman ps -a

本文介绍了如何在Linux系统中通过Yum安装Podman,然后配置阿里云镜像加速器以提升Docker镜像的拉取速度。接着演示了如何使用Podman拉取CentOS镜像、查看本地镜像、创建及运行容器,并检查容器状态。这些步骤对于优化Docker操作和管理容器环境至关重要。

被折叠的 条评论
为什么被折叠?



