Skip to content

Commit

Permalink
Merge pull request #458 from yangbin09/patch-2
Browse files Browse the repository at this point in the history
Update docker.md
  • Loading branch information
fuzhengwei committed Aug 10, 2024
2 parents a3d2cb4 + acb51bf commit 6ada63b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/md/road-map/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ uname -r
sudo yum update
```


```java
Last metadata expiration check: 1:15:10 ago on Sat 27 Nov 2021 04:22:53 PM CST.
Dependencies resolved.
Expand All @@ -46,6 +47,25 @@ Complete!
- `sudo yum update`
- 看到显示 `Complete` 就代表完成了,整个过程需要 5-10 分钟左右

注意:可能会更新失败,那就操作以下指令

~~~~bash
## 建议备份当前的 yum 源配置,以防万一需要恢复
sudo cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

## 从阿里云下载 CentOS 7 的 yum 源配置文件并替换现有的配置
sudo curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

## 清理旧的缓存并生成新的缓存
sudo yum clean all
sudo yum makecache

## 再次更新
sudo yum update
~~~~



### 3. 安装Docker所需的依赖包

```java
Expand Down

0 comments on commit 6ada63b

Please sign in to comment.