Skip to content

Commit 237a449

Browse files
committed
get rid of running 'containerd config default' with sudo
'containerd config default' doesn't require root privileges, so it doesn't make sense to run it with sudo
1 parent 45e3ddd commit 237a449

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ sudo apt-get update && sudo apt-get install -y containerd.io
122122
```shell
123123
# Configure containerd
124124
sudo mkdir -p /etc/containerd
125-
sudo containerd config default | sudo tee /etc/containerd/config.toml
125+
containerd config default | sudo tee /etc/containerd/config.toml
126126
```
127127

128128
```shell
@@ -140,7 +140,7 @@ sudo apt-get update && sudo apt-get install -y containerd
140140
```shell
141141
# Configure containerd
142142
sudo mkdir -p /etc/containerd
143-
sudo containerd config default | sudo tee /etc/containerd/config.toml
143+
containerd config default | sudo tee /etc/containerd/config.toml
144144
```
145145

146146
```shell
@@ -210,7 +210,7 @@ sudo yum update -y && sudo yum install -y containerd.io
210210
```shell
211211
## Configure containerd
212212
sudo mkdir -p /etc/containerd
213-
sudo containerd config default | sudo tee /etc/containerd/config.toml
213+
containerd config default | sudo tee /etc/containerd/config.toml
214214
```
215215

216216
```shell

0 commit comments

Comments
 (0)