From 07a8b3315dec4cf8dff764049b216d2d44ba8219 Mon Sep 17 00:00:00 2001 From: serewicz Date: Fri, 20 Nov 2020 09:16:59 -0600 Subject: [PATCH] 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 --- .../en/docs/setup/production-environment/container-runtimes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/setup/production-environment/container-runtimes.md b/content/en/docs/setup/production-environment/container-runtimes.md index ecaf53c03f..8df3c1d895 100644 --- a/content/en/docs/setup/production-environment/container-runtimes.md +++ b/content/en/docs/setup/production-environment/container-runtimes.md @@ -122,7 +122,7 @@ sudo apt-get update && sudo apt-get install -y containerd.io ```shell # Configure containerd sudo mkdir -p /etc/containerd -sudo containerd config default > /etc/containerd/config.toml +sudo containerd config default | sudo tee /etc/containerd/config.toml ``` ```shell