Skip to content

Commit

Permalink
Update Install-containerd.md
Browse files Browse the repository at this point in the history
  • Loading branch information
miaoyc666 authored May 20, 2024
1 parent d2b9a2d commit 6ee1eb2
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion K8s/cri/Install-containerd.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,31 @@ modprobe br_netfilter
# centos: 配置yum源(此处使用阿里源)
wget -O /etc/yum.repos.d/docker-ce.repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum install -y containerd.io

```
```
# ubuntu: 配置apt源(此处使用阿里源)
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://mirrors.aliyun.com/docker-ce/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
apt update
apt install -y containerd.io
```
```
# debian
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
```

#### 2.2 下载安装containerd
```bash
Expand Down

0 comments on commit 6ee1eb2

Please sign in to comment.