231224-Windows+VMware17Pro:RHEL8.8配置+Yum源配置+WiFi无线网卡配置+Docker配置

1. Windows上通过VMware安装RHEL8.8

2. 在RHEL8.8中配置Yum源

2.1 视频参考

2.2 操作大纲

在这里插入图片描述

2.3 具体步骤

Step1: 查看&删除已经安装的yum包

rpm -qa | grep yum
rpm -qa | grep yum | xargs | rpm -e --nodeps

在这里插入图片描述

Step2: 查看系统的版本号

uname -a 
cat /etc/redhat-release

在这里插入图片描述

Step3: 用centos相应文件替换RedHat的yum

在这里插入图片描述

Step4: 安装centos的rpm文件,yum源安装完成

rpm -ivh yum-4.7.0-4.el8.noarch.rpm yum-utils-4.0.21-3.el8.noarch.rpm --nodeps

在这里插入图片描述

Step5: 下载安装相应版本的repo文件

在这里插入图片描述

rpm -ivh epel-release-latest-8.noarch.rpm

在这里插入图片描述

Step6: 编辑配置repo文件

[BaseOS]
name=BaseOS
baseurl=https://mirrors.aliyun.com/centos/$releasever/BaseOS/$basearch/os/
gpgcheck=0
enable=1

[Appstream]
name=AppStream
baseurl=https://mirrors.aliyun.com/centos/$releasever/AppStream/$basearch/os/
enable=1
gpgcheck=0

[epel]
name=EPEL
baseurl=https://mirrors.aliyun.com/epel/8/Everything/x86_64/
gpgcheck=0

在这里插入图片描述

Step7:更新软件包缓存

在这里插入图片描述

Step8: 验证

yum install -y tree

在这里插入图片描述

3. 如何配置虚拟机中的Wi-Fi网络

3.1 根据主机的WiFi网络的名称设置VMware的虚拟网络

请添加图片描述

3.2 在VMware中选择桥接模式

在这里插入图片描述

3.3 根据主机IPv4的address与DNS配置虚拟机中的网络

在这里插入图片描述

3. 4 网络访问验证

在这里插入图片描述

3. 5 参考链接

4. 在RHEL上安装配置Docker

4.1 在RHEL8.8中配置CentOS-Docker的基础教程

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.com/docker-ce/linux/centos/docker-ce.repo

Step 3: 提前解决在RHEL8.8中会碰到的问题 🎯

rpm -q podman
dnf remove podman

rmp -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
c1ec31eb5944: Pull complete 
Digest: sha256:ac69084025c660510933cca701f615283cdbb3aa0963188770b54c31c8962493
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)
 3. 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.com/

For more examples and ideas, visit:
 https://docs.docker.com/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                                                                                                                                                                       36 kB/s |  52 kB     00:01    
错误:
 问题 1: 安装的软件包的问题 podman-3:4.4.1-8.module+el8.8.0+18438+15d3aa65.x86_64
  - 软件包 podman-3:4.4.1-8.module+el8.8.0+18438+15d3aa65.x86_64 需要 runc >= 1.0.0-57,但没有提供者可以被安装
  - 软件包 podman-3.3.1-9.module_el8.5.0+988+b1f0b741.x86_64 需要 runc >= 1.0.0-57,但没有提供者可以被安装
  - 软件包 containerd.io-1.6.26-3.1.el8.x86_64 与 runc(由 runc-1:1.1.4-1.module+el8.8.0+18060+3f21f2cc.x86_64 提供)冲突
  - 软件包 containerd.io-1.6.26-3.1.el8.x86_64 淘汰了 runc 提供的 runc-1:1.1.4-1.module+el8.8.0+18060+3f21f2cc.x86_64
  - 软件包 containerd.io-1.6.26-3.1.el8.x86_64 与 runc(由 runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64 提供)冲突
  - 软件包 containerd.io-1.6.26-3.1.el8.x86_64 淘汰了 runc 提供的 runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64
  - 无法为该任务安装最佳候选
  - 软件包 runc-1.0.0-66.rc10.module_el8.5.0+1004+c00a74f5.x86_64 被模块过滤过滤掉
  - 软件包 runc-1.0.0-72.rc92.module_el8.5.0+1006+8d0e68a2.x86_64 被模块过滤过滤掉

......
rpm -q podman
dnf remove podman
rmp -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 前,执行于 2023年12月23日 星期六 20时36分51秒。
依赖关系解决。
===============================================================================================================================================================================================================================
 软件包                                                架构                                   版本                                                                      仓库                                              大小
===============================================================================================================================================================================================================================
安装:
 containerd.io                                         x86_64                                 1.6.26-3.1.el8                                                            docker-ce-stable                                  35 M
 docker-ce                                             x86_64                                 3:24.0.7-1.el8                                                            docker-ce-stable                                  24 M
 docker-ce-cli                                         x86_64                                 1:24.0.7-1.el8                                                            docker-ce-stable                                 7.2 M
 docker-compose-plugin                                 x86_64                                 2.21.0-1.el8                                                              docker-ce-stable                                  13 M
安装依赖关系:
 container-selinux                                     noarch                                 2:2.167.0-1.module_el8.5.0+911+f19012f9                                   Appstream                                         54 k
 libcgroup                                             x86_64                                 0.41-19.el8                                                               BaseOS                                            70 k
安装弱的依赖:
 docker-buildx-plugin                                  x86_64                                 0.11.2-1.el8                                                              docker-ce-stable                                  13 M

事务概要
===============================================================================================================================================================================================================================
安装  7 软件包

总下载:92 M
安装大小:354 M
确定吗?[y/N]: y

相关推荐

  1. Ubuntu下wifi 无线网络配置

    2023-12-24 13:48:05       40 阅读
  2. yum配置yum

    2023-12-24 13:48:05       14 阅读
  3. 配置yum镜像

    2023-12-24 13:48:05       32 阅读
  4. 本地yum配置

    2023-12-24 13:48:05       38 阅读
  5. redhat yum配置

    2023-12-24 13:48:05       13 阅读
  6. 配置yum

    2023-12-24 13:48:05       8 阅读
  7. linux CentOS7配置dockeryum并安装

    2023-12-24 13:48:05       14 阅读

最近更新

  1. TCP协议是安全的吗?

    2023-12-24 13:48:05       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2023-12-24 13:48:05       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2023-12-24 13:48:05       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2023-12-24 13:48:05       20 阅读

热门阅读

  1. http缓存协议详细介绍

    2023-12-24 13:48:05       40 阅读
  2. 网络安全法概论

    2023-12-24 13:48:05       35 阅读
  3. 基于Simulink的光伏阵列和电池充放电控制

    2023-12-24 13:48:05       45 阅读
  4. 时间与时间戳转换及android和ios对时间识别的区别

    2023-12-24 13:48:05       36 阅读
  5. mysql(50) : 数据导出为csv

    2023-12-24 13:48:05       39 阅读
  6. 计算鞍点(C++)

    2023-12-24 13:48:05       38 阅读
  7. C++_析构函数

    2023-12-24 13:48:05       31 阅读