更新 '存储/ceph/p版本安装/4-安装containerd及docker.md'
This commit is contained in:
parent
c007bc5cec
commit
e1283a7345
1 changed files with 13 additions and 0 deletions
|
@ -3,4 +3,17 @@ yum remove -y containerd.io
|
||||||
yum install -y yum-utils device-mapper-persistent-data lvm2 wget ipvsadm vim
|
yum install -y yum-utils device-mapper-persistent-data lvm2 wget ipvsadm vim
|
||||||
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
|
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
|
||||||
yum install -y containerd.io docker-ce
|
yum install -y containerd.io docker-ce
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell
|
||||||
|
mkdir -p /etc/containerd
|
||||||
|
containerd config default > /etc/containerd/config.toml
|
||||||
|
sed -i "s#k8s.gcr.io#registry.aliyuncs.com/google_containers#g" /etc/containerd/config.toml
|
||||||
|
sed -i '/containerd.runtimes.runc.options/a\ \ \ \ \ \ \ \ \ \ \ \ SystemdCgroup = true' /etc/containerd/config.toml
|
||||||
|
sed -i "s#https://registry-1.docker.io#registry.aliyuncs.com#g" /etc/containerd/config.toml
|
||||||
|
```
|
||||||
|
```shell
|
||||||
|
systemctl daemon-reload
|
||||||
|
systemctl enable containerd docker
|
||||||
|
systemctl restart containerd docker
|
||||||
```
|
```
|
Loading…
Add table
Add a link
Reference in a new issue