Redhat8 安装docker
1.备份原文件
#cp /etc/yum.repos.d/redhat.repo /etc/yum.repos.d/redhat.repo_bak
2.下载阿里云yum源配置文件(选择centos8):
# wget -O /etc/yum.repos.d/aliyun.repo http://mirrors.aliyun.com/repo/Centos-8.repo
3.清除缓存
# yum clean all
4.更新
# yum makecache
5.查看可用yum源
# yum repolist
6.安装软件包(提供实用程序)并设置存储库
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
7.安装docker
# yum install docker-ce
8.启动docker
# systemctl start docker
9.验证
#sudo docker run hello-world
Redhat8 安装Docker
最新推荐文章于 2025-03-17 14:10:00 发布