Skip to content

Commit 3a5d246

Browse files
authored
Merge pull request #25822 from peymanslh/cotainerd_deb
Add containerd installation on Debian
2 parents ebc5a71 + a9aa049 commit 3a5d246

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

content/en/docs/setup/production-environment/container-runtimes.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,44 @@ sudo mkdir -p /etc/containerd
143143
sudo containerd config default | sudo tee /etc/containerd/config.toml
144144
```
145145

146+
```shell
147+
# Restart containerd
148+
sudo systemctl restart containerd
149+
```
150+
{{% /tab %}}
151+
{{% tab name="Debian 9+" %}}
152+
153+
```shell
154+
# (Install containerd)
155+
## Set up the repository
156+
### Install packages to allow apt to use a repository over HTTPS
157+
sudo apt-get update && sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
158+
```
159+
160+
```shell
161+
## Add Docker's official GPG key
162+
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key --keyring /etc/apt/trusted.gpg.d/docker.gpg add -
163+
```
164+
165+
```shell
166+
## Add Docker apt repository.
167+
sudo add-apt-repository \
168+
"deb [arch=amd64] https://download.docker.com/linux/debian \
169+
$(lsb_release -cs) \
170+
stable"
171+
```
172+
173+
```shell
174+
## Install containerd
175+
sudo apt-get update && sudo apt-get install -y containerd.io
176+
```
177+
178+
```shell
179+
# Set default containerd configuration
180+
sudo mkdir -p /etc/containerd
181+
containerd config default | sudo tee /etc/containerd/config.toml
182+
```
183+
146184
```shell
147185
# Restart containerd
148186
sudo systemctl restart containerd
@@ -523,4 +561,3 @@ sudo systemctl enable docker
523561

524562
Refer to the [official Docker installation guides](https://docs.docker.com/engine/installation/)
525563
for more information.
526-

0 commit comments

Comments
 (0)