Closed replay111 closed 2 years ago
@replay111 Disable selinux and check if it works then
Actually, nomad drops the cap net_raw
-- if you readd that it can work again https://www.nomadproject.io/docs/drivers/docker#allow_caps
You will get the same issue with docker if you execute:
docker run --rm -it --cap-drop net_raw ubuntu:latest bash -c "apt update && apt -y install fping && fping 8.8.8.8"
@apollo13 selinux is disabled, and docker itself is working perfectly - only when running via nomad I have a problem - please see here: https://github.com/zabbix/zabbix-docker/issues/900 - I did some checks earlier with gus from zabbix.
@apollo13 - thank you! adding allow_caps in server satnza solved this issue ;-)
Glad that worked out! I'm closing this issue, but feel free to re-open if you have further need.
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Nomad version
nomad -v : Nomad v1.2.0 (0e11f8d5173e78dce23433903d086e3f9dfea7ea)
Operating system and Environment details
Issue
When I am running task with zabbix-server using docker driver I am not able to use fping -
bash: /usr/sbin/fping: Operation not permitted
When I am running the same container but directly on docker - everything is working fine
Reproduction steps
Expected Result
Actual Result
Nomad Server logs (if appropriate)
Nomad Client logs (if appropriate)
=========================== I've raised issue for this with zabbix guys - but after a couple of tests it turns out that docker-compose/docker is working without any problems - for me this problems only occurs when using nomad
https://github.com/zabbix/zabbix-docker/issues/900