环境
- Rocky Linux 9.4
移除原有的docker
dnf remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
安装yum-utils
dnf install -y yum-utils
配置安装源
yum-config-manager \
--add-repo \
https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
安装dockers
dnf install docker-ce docker-ce-cli containerd.io docker-compose-plugin
设置开机启动
systemctl enable --now docker
标签:dnf,ce,yum,docker,安装,latest
From: https://www.cnblogs.com/paylove/p/18437163