From c13ce2e5c1719b931a9154b76748edf114e75f16 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Fri, 19 Mar 2021 14:58:06 +0900 Subject: [PATCH] rootless: add guide for restarting containerd after modifying config Signed-off-by: Akihiro Suda --- docs/rootless.md | 4 ++-- extras/rootless/containerd-rootless-setuptool.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/rootless.md b/docs/rootless.md index e42018616a9..0231d24649c 100644 --- a/docs/rootless.md +++ b/docs/rootless.md @@ -58,7 +58,7 @@ To enable `fuse-overlayfs` snapshotter, run the following command: $ containerd-rootless-setuptool.sh install-fuse-overlayfs ``` -Then, add the following config to `~/.config/containerd/config.toml`: +Then, add the following config to `~/.config/containerd/config.toml`, and run `systemctl --user restart containerd.service`: ```toml [proxy_plugins] [proxy_plugins."fuse-overlayfs"] @@ -85,7 +85,7 @@ To enable Stargz snapshotter, run the following command: $ containerd-rootless-setuptool.sh install-stargz ``` -Then, add the following config to `~/.config/containerd/config.toml`: +Then, add the following config to `~/.config/containerd/config.toml` and run `systemctl --user restart containerd.service`: ```toml [proxy_plugins] [proxy_plugins."stargz"] diff --git a/extras/rootless/containerd-rootless-setuptool.sh b/extras/rootless/containerd-rootless-setuptool.sh index b7f05fee878..9b2fd1c6ade 100755 --- a/extras/rootless/containerd-rootless-setuptool.sh +++ b/extras/rootless/containerd-rootless-setuptool.sh @@ -303,7 +303,7 @@ cmd_entrypoint_install_fuse_overlayfs() { [Install] WantedBy=default.target EOT - INFO "Add the following lines to \"${XDG_CONFIG_HOME}/containerd/config.toml\" manually:" + INFO "Add the following lines to \"${XDG_CONFIG_HOME}/containerd/config.toml\" manually, and then run \`systemctl --user restart ${SYSTEMD_CONTAINERD_UNIT}\`:" cat <<-EOT ### BEGIN ### [proxy_plugins] @@ -347,7 +347,7 @@ cmd_entrypoint_install_stargz() { [Install] WantedBy=default.target EOT - INFO "Add the following lines to \"${XDG_CONFIG_HOME}/containerd/config.toml\" manually:" + INFO "Add the following lines to \"${XDG_CONFIG_HOME}/containerd/config.toml\" manually, and then run \`systemctl --user restart ${SYSTEMD_CONTAINERD_UNIT}\`:" cat <<-EOT ### BEGIN ### [proxy_plugins]