Skip to content

Commit 07a8b33

Browse files
authored
Update container-runtimes.md
The current command on line 125 throws a permission error. The sudo elevation of rights applies to the containerd command, not the write (>) to a file owned by root. This is the command as copied from the current page: student@master:~$ sudo containerd config default > /etc/containerd/config.toml -bash: /etc/containerd/config.toml: Permission denied Instead leverage sudo tee. It works and no more error: student@master:~$ containerd config default | sudo tee /etc/containerd/config.toml
1 parent d63933d commit 07a8b33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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 > /etc/containerd/config.toml
125+
sudo containerd config default | sudo tee /etc/containerd/config.toml
126126
```
127127

128128
```shell

0 commit comments

Comments
 (0)