RockyLinux9.5安装Docker

B站影视 2024-12-04 19:53 2

摘要:cat /etc/redhat-release uname -asudo dnf remove -y docker \docker-client \docker-client-latest \docker-common \docker-latest \dock

cat /etc/redhat-release uname -asudo dnf remove -y docker \docker-client \docker-client-latest \docker-common \docker-latest \docker-latest-logrotate \docker-logrotate \docker-engine \podman \runc

安装 dnf-plugins-core 包(提供管理 DNF 存储库的命令)并设置存储库。

sudo dnf -y install dnf-plugins-coresudo dnf config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo sudo dnf makecachesudo dnf -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-pluginsudo systemctl start dockersudo systemctl enable dockersudo systemctl status dockersudo docker versionsudo mkdir -p /etc/dockersudo tee /etc/docker/daemon.json

如果不配置镜像加速

配置镜像加速后

来源:火力冲锋劲

相关推荐