Skip to content

Commit b2673a2

Browse files
author
Wu Wenxiang
authored
centos 7 -> rocky 8
1 parent 81d722a commit b2673a2

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

reference/release-flow.md

+14-3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

4242
```bash
4343
apt-get install docker.io docker-compose
44+
systemctl enable docker --now
4445
```
4546

4647
sh 指向 bash
@@ -58,10 +59,20 @@ root@openv2x-cicd:~/src# ls -al /usr/bin/sh
5859
lrwxrwxrwx 1 root root 4 Jun 27 16:26 /usr/bin/sh -> bash
5960
```
6061

61-
### 2.1.3 CentOS 7.9 2009
62+
### 2.1.3 Rocky 8
6263

63-
1. upgrade kernel to 5.4+
64-
2. install docker.io & docker-compose 20.10
64+
install docker.io & docker-compose
65+
66+
```bash
67+
# 翻墙,拿到数据,保存到 /etc/yum.repos.d/docker-ce.repo
68+
curl -ik https://download.docker.com/linux/centos/docker-ce.repo
69+
70+
# 参考:https://mirrors.tuna.tsinghua.edu.cn/help/docker-ce/
71+
sed -i 's+https://download.docker.com+https://mirrors.tuna.tsinghua.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo
72+
yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
73+
74+
systemctl enable docker --now
75+
```
6576

6677
## 2.2 提交代码到新分支
6778

0 commit comments

Comments
 (0)