Closed anshprat closed 1 year ago
This seem to be podman specific issue. I did a local build on podman which still failed. I then did a local build on docker where fping is successful at least. Closing this for now since Its not this image specific issue.
Sorry for reviving this dead issue, however I did want to let people using podman know that in order to get FPing to work in podman you must run it with the follow settings:
--cap-add net_raw
and
--cap-add net_admin
the command would end up as something like this:
podman run -d \
--name=smokeping \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Etc/UTC \
--cap-add net_raw \
--cap-add net_admin \
-p 80:80 \
-v /path/to/smokeping/config:/config \
-v /path/to/smokeping/data:/data \
--restart unless-stopped \
lscr.io/linuxserver/smokeping:latest
Sorry for reviving this dead issue, however I did want to let people using podman know that in order to get FPing to work in podman you must run it with the follow settings:
--cap-add net_raw
and--cap-add net_admin
the command would end up as something like this:
podman run -d \ --name=smokeping \ -e PUID=1000 \ -e PGID=1000 \ -e TZ=Etc/UTC \ --cap-add net_raw \ --cap-add net_admin \ -p 80:80 \ -v /path/to/smokeping/config:/config \ -v /path/to/smokeping/data:/data \ --restart unless-stopped \ lscr.io/linuxserver/smokeping:latest
struggling to make this work in a podman-compose.yml? I found this... https://stackoverflow.com/questions/58377469/difference-between-cap-add-net-admin-and-add-capabilities-in-yml but still haven't found a working solution.
Sorry for reviving this dead issue, however I did want to let people using podman know that in order to get FPing to work in podman you must run it with the follow settings:
--cap-add net_raw
and--cap-add net_admin
the command would end up as something like this:podman run -d \ --name=smokeping \ -e PUID=1000 \ -e PGID=1000 \ -e TZ=Etc/UTC \ --cap-add net_raw \ --cap-add net_admin \ -p 80:80 \ -v /path/to/smokeping/config:/config \ -v /path/to/smokeping/data:/data \ --restart unless-stopped \ lscr.io/linuxserver/smokeping:latest
struggling to make this work in a podman-compose.yml? I found this... https://stackoverflow.com/questions/58377469/difference-between-cap-add-net-admin-and-add-capabilities-in-yml but still haven't found a working solution.
I don't use podman-compose but from what I'm seeing there's this issue noted
They provide an example that's a bit different from the one you provide. Based on what they wrote, I'd expect it to be something like:
cap_add:
- net_raw
- net_admin
They also seem to note that the capability was added in a specific version of podman-compose. Which version are you running?
Is there an existing issue for this?
Current Behavior
While running the default image with podman, fping failed to run.
Following https://lists.oetiker.ch/pipermail/smokeping-users/2017-July/005966.html , I did a docker exec and then a chmos u+s. fping worked fine after that.
A docker restart after the above worked fine. This feels like something that needs to be fixed in the base image?
CPU architecture
x86-64
Docker creation
Container logs