环境准备:
Centos8 下载地址:http://mirrors.aliyun.com/centos/8/isos/x86_64/
我用的版本是CentOS 8.3 ,默认repo文件中使用了mirrorlist 取代 baseurl,能根据客户IP从地理位置上选择镜像源,不用再单独设置阿里源。
如果要单独设置阿里源,要先移除repo文件,再从阿里下载repo文件:
mv /etc/yum.repos.d/* /tmp
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
系统安装完毕后更新一下:
dnf update -y
关闭SeLinux:
vi /etc/sysconfig/selinux
SELINUX=disabled
设置时区:
timedatectl set-timezone Asia/Shanghai
重启CentOS:
reboot
查看内核版本:
uname -r
4.18.0-240.1.1.el8_3.x86_64
dnf install podman -y
podman加速镜像配置:
cp /etc/containers/registries.conf{,.bak}
cat > /etc/containers/registries.conf << EOF
unqualified-search-registries = ["docker.io"]
[[regis