From 7153e1443af45199eaf8af5363e497262a168160 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sat, 4 May 2024 18:41:49 -0500 Subject: [PATCH] docs: added more detail about autopauase rootless usage (#2814) --- docs/misc/autopause-autostop/autopause.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/misc/autopause-autostop/autopause.md b/docs/misc/autopause-autostop/autopause.md index bd426bedce1..c5b9c2778f1 100644 --- a/docs/misc/autopause-autostop/autopause.md +++ b/docs/misc/autopause-autostop/autopause.md @@ -45,7 +45,9 @@ The following environment variables define the behaviour of auto-pausing: ## Rootless Auto-Pause -If you're running the container as rootless, you might need to set change the default port forwarder from RootlessKit to slirp4netns. +If you're running the container as rootless, then it is necessary to add the `CAP_NET_RAW` capability to the container, such as using [the `cap_add` service field](https://docs.docker.com/compose/compose-file/05-services/#cap_add) in a compose file or [`--cap-add` docker run argument](https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities). It may also be necessary to set the environment variable `SKIP_SUDO` to "true". + +You might need to set change the default port forwarder from RootlessKit to slirp4netns. For Docker, see the following for setup: @@ -54,8 +56,9 @@ For Docker, see the following for setup: For Podman, see the following for setup: - https://rootlesscontaine.rs/getting-started/podman/#changing-the-port-forwarder -- Run with - ``` - -e AUTOPAUSE_KNOCK_INTERFACE=tap0 --cap-add=CAP_NET_RAW --network slirp4netns:port_handler=slirp4netns - ``` + +!!! example "Using docker run" + + -e AUTOPAUSE_KNOCK_INTERFACE=tap0 --cap-add=CAP_NET_RAW --network slirp4netns:port_handler=slirp4netns +