File tree 1 file changed +14
-3
lines changed
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 41
41
42
42
``` bash
43
43
apt-get install docker.io docker-compose
44
+ systemctl enable docker --now
44
45
```
45
46
46
47
sh 指向 bash
@@ -58,10 +59,20 @@ root@openv2x-cicd:~/src# ls -al /usr/bin/sh
58
59
lrwxrwxrwx 1 root root 4 Jun 27 16:26 /usr/bin/sh -> bash
59
60
```
60
61
61
- ### 2.1.3 CentOS 7.9 2009
62
+ ### 2.1.3 Rocky 8
62
63
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
+ ```
65
76
66
77
## 2.2 提交代码到新分支
67
78
You can’t perform that action at this time.
0 commit comments