From 1eb880da0b6e0fe117484744a5f36bde3157e3be Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Sun, 2 Oct 2022 08:18:46 +0530 Subject: [PATCH] bluefeds: enable ping for rootless containers --- content/posts/bluefeds.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/posts/bluefeds.md b/content/posts/bluefeds.md index 8b612ba..3149000 100644 --- a/content/posts/bluefeds.md +++ b/content/posts/bluefeds.md @@ -360,6 +360,13 @@ mkdir -vp /trayimurti/containers/volumes/nextcloud/{database,web} ``` +### Enable workaround for "root-less containers can't ping hosts" + +```bash +grep net.ipv4.ping_group_range /etc/sysctl.conf || echo "net.ipv4.ping_group_range=0 $(grep pratham /etc/subuid | awk -F ":" '{print $2 + $3}')" | sudo tee -a /etc/sysctl.conf +``` + + ### Hugo ```bash