- 安装
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