Adding rootless autopause instructions to the readme. (#2030)

This commit is contained in:
James Mighion authored and GitHub committed 2023-03-24 12:00:11 -05:00
1 parent f1aad07804
commit ab2f77d8ba
1 file changed
+15
+15
View File
@@ -1870,6 +1870,21 @@ The following environment variables define the behaviour of auto-pausing:
> To troubleshoot, add `DEBUG_AUTOPAUSE=true` to see additional output > To troubleshoot, add `DEBUG_AUTOPAUSE=true` to see additional output
### Rootless Autopause
If you're running the container as rootless, you might need to set change the default port forwarder from RootlessKit to slirp4netns.
For Docker, see the following for setup:
* https://docs.docker.com/engine/security/rootless/#networking-errors
* https://rootlesscontaine.rs/getting-started/docker/#changing-the-port-forwarder
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
```
## Autostop ## Autostop
An option to stop the server after a specified time has been added for niche applications (e.g. billing saving on AWS Fargate). The function is incompatible with the Autopause functionality, as they basically cancel out each other. An option to stop the server after a specified time has been added for niche applications (e.g. billing saving on AWS Fargate). The function is incompatible with the Autopause functionality, as they basically cancel out each other.