mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-25 19:25:27 +00:00
Simplify words and fix format issues
This commit is contained in:
@@ -10,8 +10,6 @@
|
||||
|
||||
### 3.6.1 概述
|
||||
|
||||
总体概述了以下内容。
|
||||
|
||||
### 3.6.2 CentOS/Rocky/AlmaLinux 离线安装 Docker
|
||||
|
||||
在无法连接外网的安全环境中,离线安装是唯一的选择。本节介绍如何在 RHEL 系发行版中进行离线安装。
|
||||
@@ -24,8 +22,6 @@
|
||||
|
||||
##### 查询可用的软件版本
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
#下载清华的镜像源文件
|
||||
wget -O /etc/yum.repos.d/docker-ce.repo https://download.docker.com/linux/centos/docker-ce.repo
|
||||
@@ -53,8 +49,6 @@ docker-ce.x86_64 3:19.03.1-3.el7 docker-ce-stable
|
||||
|
||||
##### 下载到指定文件夹
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
sudo yum install --downloadonly --downloaddir=/tmp/docker24_offline_install/ docker-ce-24.0.4-1.el7 docker-ce-cli-24.0.4-1.el7
|
||||
```
|
||||
@@ -155,12 +149,8 @@ sudo yum versionlock delete all
|
||||
|
||||
#### YUM 本地源服务器搭建安装 Docker
|
||||
|
||||
本节涵盖了相关内容与详细描述,主要探讨以下几个方面:
|
||||
|
||||
##### 挂载 ISO 镜像搭建本地 File 源
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
## 删除其他网络源
|
||||
|
||||
@@ -192,8 +182,6 @@ yum install createrepo -y
|
||||
|
||||
##### 根据本地文件搭建 BASE 网络源
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
## 安装apache 服务器
|
||||
|
||||
@@ -246,8 +234,6 @@ createrepo /var/www/html/docker-ce/
|
||||
|
||||
##### YUM 客户端设置 (C...N)
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
rm -f /etc/yum.repos.d/*
|
||||
cat >/etc/yum.repos.d/local_files.repo<< EOF
|
||||
@@ -273,8 +259,6 @@ EOF
|
||||
|
||||
##### Docker 安装 (C...N)
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
sudo yum makecache fast
|
||||
sudo yum install docker-ce docker-ce-cli containerd.io
|
||||
|
||||
Reference in New Issue
Block a user