21224-Windows+VMware17Pro:RHEL8.8配置+Yum源配置+WiFi无线网卡配置+Docker配置
1. Windows上通过VMware安装RHEL8.8
直接参考1min视频操作即可:红帽最新企业Linux RHEL 9下载与安装教程_哔哩哔哩_bilibili通过两个链接,提前下载并安装两个软件:
点击此处,提前下载所需要的RHEL版本点击此处
- 直接参考1min视频操作即可:红帽最新企业Linux RHEL 9下载与安装教程_哔哩哔哩_bilibili
- 通过两个链接,提前下载并安装两个软件:
- 点击此处,提前下载所需要的RHEL版本
- 点击此处,注册并下载VMware,可试用再购买
- 本次测试的是下面红方框的版本
2.1 根据主机的WiFi网络的名称设置VMware的虚拟网络
2.2 在VMware中选择桥接模式
2. 根据主机IPv4的address与DS配置虚拟机中的网络
2.4 网络访问验证
2.5 参考链接
- 虚拟机vmware使用桥接方式联网设置_vmware虚拟机怎么连接wifi-CSD博客
- VMWARE设置桥接(bridge network)网络 | 连接主机(Host)无线网卡 | 内网访问 | 连接互联网 - YouTube
.1 视频参考
- Redhat8.0 yum install问题解决_哔哩哔哩_bilibili
.2 操作大纲
. 具体步骤
Step1: 查看&删除已经安装的yum包
rpm -qa | grep yum
rpm -qa | grep yum | xargs | rpm -e --nodeps
Step2: 查看系统的版本号
uname -a
cat /etc/redhat-release
Step: 用centos相应文件替换RedHat的yum
- https://mirrors.aliyun/centos/8/BaseOS/x86_64/os/Packages/
- 右键下载:yum-4.7.rpm
- 右键下载:yum-utils-4.0.rpm
Step4: 安装centos的rpm文件,yum源安装完成
rpm -ivh yum-4.7.rpm yum-utils-4.0.rpm --nodeps
Step5: 下载安装相应版本的repo文件
- epel安装包下载_开源镜像站-阿里云
- 右键下载:rpm
rpm -ivh rpm
Step6: 编辑配置repo文件
[BaseOS]
name=BaseOS
baseurl=https://mirrors.aliyun/centos/$releasever/BaseOS/$basearch/os/
gpgcheck=0
enable=1
[Appstream]
name=AppStream
baseurl=https://mirrors.aliyun/centos/$releasever/AppStream/$basearch/os/
enable=1
gpgcheck=0
[epel]
name=EPEL
baseurl=https://mirrors.aliyun/epel/8/Everything/x86_64/
gpgcheck=0
Step7:更新软件包缓存
yum makecache
Step8: 验证
yum install -y tree
4.1 在RHEL8.8中配置CentOS-Docker的基础教程
-
4.1.1 参考链接
- CentOS Docker 安装 | 菜鸟教程
- 【Centos8】Centos8安装Docker 踩坑经验分享_哔哩哔哩_bilibili
-
4.1.2 操作总结
Step1 : 卸载旧版本
sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
Step2 : 设置仓库并使用阿里源
sudo yum install -y yum-utils \
device-mapper-persistent-data \
lvm2
sudo yum-config-manager \
--add-repo \
https://mirrors.aliyun/docker-ce/linux/centos/docker-ce.repo
Step : 提前解决在RHEL8.8中会碰到的问题 ᾯ
rpm -q podman
dnf remove podman
rpm -qa | grep runc
yum remove runc
Step 4: 安装 Docker Engine-Community
sudo yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin
Step 5: 启动Docker并测试
启动
sudo systemctl start docker
执行
sudo docker run hello-world
结果
[root@localhost yum.repos.d]# sudo docker run hello-world
Unable to find image hello-world:latest locally
latest: Pulling from library/hello-world
c1ec1eb5944: Pull complete
Digest: sha256:ac69084025c6605109cca701f61528cdbbaa096188770b54c1c896249
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the hello-world image from the Docker Hub.
(amd64)
. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker/
For more examples and ideas, visit:
https://docs.docker/get-started/
4.2 在RHEL8.8中配置CentOS-Docker的一些问题
- 4.2.1 操作描述
sudo yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin
- 4.2.2 问题描述
[root@localhost yum.repos.d]# sudo yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin
正在更新 Subscription Management 软件仓库。
无法读取客户身份
本系统尚未在权利服务器中注册。可使用 subscription-manager 进行注册。
Repository epel is listed more than once in the configuration
Docker CE Stable - x86_64 6 kB/s | 52 kB 00:01
错误:
问题 1: 安装的软件包的问题 podman-:4.4.el8.8.0184815daa65.x86_64
- 软件包 podman-:4.4.el8.8.0184815daa65.x86_64 需要 runc >= 1.0.0-57,但没有提供者可以被安装
- 软件包 podman-.._el8.5.0988b1f0b741.x86_64 需要 runc >= 1.0.0-57,但没有提供者可以被安装
- 软件包 containerd.io-1.6.26-.x86_64 与 runc(由 runc-1:1.1.el8.8.018060f21f2cc.x86_64 提供)冲突
- 软件包 containerd.io-1.6.26-.x86_64 淘汰了 runc 提供的 runc-1:1.1.el8.8.018060f21f2cc.x86_64
- 软件包 containerd.io-1.6.26-.x86_64 与 runc(由 runc-1.0._el8.5.0911f19012f9.x86_64 提供)冲突
- 软件包 containerd.io-1.6.26-.x86_64 淘汰了 runc 提供的 runc-1.0._el8.5.0911f19012f9.x86_64
- 无法为该任务安装最佳候选
- 软件包 runc-1.0.0-66._el8.5.01004c00a74f5.x86_64 被模块过滤过滤掉
- 软件包 runc-1.0.0-72._el8.5.010068d0e68a2.x86_64 被模块过滤过滤掉
......
- 4.2. 解决由PodMan导致的问题
rpm -q podman
dnf remove podman
- 4.2.4 解决由Runc导致的问题
rpm -qa | grep runc
yum remove runc
- 4.2.5 再次运行
[root@localhost yum.repos.d]# sudo yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin
正在更新 Subscription Management 软件仓库。
无法读取客户身份
本系统尚未在权利服务器中注册。可使用 subscription-manager 进行注册。
Repository epel is listed more than once in the configuration
上次元数据过期检查:0:10:25 前,执行于 202年12月2日 星期六 20时6分51秒。
依赖关系解决。
===============================================================================================================================================================================================================================
软件包 架构 版本 仓库 大小
===============================================================================================================================================================================================================================
安装:
containerd.io x86_64 1.6.26-. docker-ce-stable 5 M
docker-ce x86_64 :24.0.7- docker-ce-stable 24 M
docker-ce-cli x86_64 1:24.0.7- docker-ce-stable 7.2 M
docker-compose-plugin x86_64 2.21.0- docker-ce-stable 1 M
安装依赖关系:
container-selinux noarch 2:2.167._el8.5.0911f19012f9 Appstream 54 k
libcgroup x86_64 0.41 BaseOS 70 k
安装弱的依赖:
docker-buildx-plugin x86_64 0.11.2- docker-ce-stable 1 M
事务概要
===============================================================================================================================================================================================================================
安装 7 软件包
总下载:92 M
安装大小:54 M
确定吗?[y/]: y
#感谢您对电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格的认可,转载请说明来源于"电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格
上传时间: 2025-07-16 21:44:44
推荐阅读
留言与评论(共有 12 条评论) |
本站网友 内分泌失调吃什么 | 21分钟前 发表 |
无法读取客户身份 本系统尚未在权利服务器中注册 | |
本站网友 金华小区 | 3分钟前 发表 |
//mirrors.aliyun/epel/8/Everything/x86_64/ gpgcheck=0 Step7 | |
本站网友 大麦若叶 | 15分钟前 发表 |
//docs.docker/get-started/ 4.2 在RHEL8.8中配置CentOS-Docker的一些问题 4.2.1 操作描述 sudo yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin 4.2.2 问题描述 [root@localhost yum.repos.d]# sudo yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin 正在更新 Subscription Management 软件仓库 | |
本站网友 中山火炬 | 4分钟前 发表 |
10 | |
本站网友 贵阳楼市 | 4分钟前 发表 |
查看&删除已经安装的yum包 rpm -qa | grep yum rpm -qa | grep yum | xargs | rpm -e --nodeps Step2 | |
本站网友 华西妇科医院 | 25分钟前 发表 |
Repository epel is listed more than once in the configuration 上次元数据过期检查:0 | |
本站网友 天津华北医院 | 11分钟前 发表 |
$ docker run -it ubuntu bash Share images | |
本站网友 javascript权威指南 | 29分钟前 发表 |
1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the hello-world image from the Docker Hub. (amd64) . The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client | |
本站网友 济南长清大学城 | 23分钟前 发表 |
container-selinux noarch 2 | |
本站网友 男科医生 | 29分钟前 发表 |
containerd.io x86_64 1.6.26-. docker-ce-stable 5 M docker-ce x86_64 | |
本站网友 阳谷信息港 | 29分钟前 发表 |
//mirrors.aliyun/epel/8/Everything/x86_64/ gpgcheck=0 Step7 |