Add containerd installation on Debian 9+

Add containerd installation on Debian

write docker keyring in a seprate file

Co-authored-by: Tim Bannister <tim@scalefactory.com>

edit comment

Co-authored-by: Tim Bannister <tim@scalefactory.com>

remove sudo

Co-authored-by: Tim Bannister <tim@scalefactory.com>
pull/25822/head
Peyman Salehi 2020-12-26 18:41:24 +03:30
parent 8279881e39
commit a9aa049103
1 changed files with 38 additions and 1 deletions

View File

@ -143,6 +143,44 @@ sudo mkdir -p /etc/containerd
sudo containerd config default > /etc/containerd/config.toml sudo containerd config default > /etc/containerd/config.toml
``` ```
```shell
# Restart containerd
sudo systemctl restart containerd
```
{{% /tab %}}
{{% tab name="Debian 9+" %}}
```shell
# (Install containerd)
## Set up the repository
### Install packages to allow apt to use a repository over HTTPS
sudo apt-get update && sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
```
```shell
## Add Docker's official GPG key
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key --keyring /etc/apt/trusted.gpg.d/docker.gpg add -
```
```shell
## Add Docker apt repository.
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
```
```shell
## Install containerd
sudo apt-get update && sudo apt-get install -y containerd.io
```
```shell
# Set default containerd configuration
sudo mkdir -p /etc/containerd
containerd config default | sudo tee /etc/containerd/config.toml
```
```shell ```shell
# Restart containerd # Restart containerd
sudo systemctl restart containerd sudo systemctl restart containerd
@ -516,4 +554,3 @@ sudo systemctl enable docker
Refer to the [official Docker installation guides](https://docs.docker.com/engine/installation/) Refer to the [official Docker installation guides](https://docs.docker.com/engine/installation/)
for more information. for more information.