Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to ping from inside container #34

Open
percy78 opened this issue Jul 23, 2019 · 0 comments
Open

Unable to ping from inside container #34

percy78 opened this issue Jul 23, 2019 · 0 comments

Comments

@percy78
Copy link

percy78 commented Jul 23, 2019

@cyphar

Hi, this has obviously been addressed earlier but unfortunately I have tested all to no avail.

The issue suddenly just appeared after a restart of my Nagios docker container, hence the issue as check_ping is invoked by the nagios user. What happened was that my docker storage /var/lib/docker almost got full. I therefore added a new drive on to my Ubuntu host and created a new LVM volume to cater for Docker. I stopped all the containers and then tared /var/lib/docker to the new volume. Then I restarted my nagios container and all of sudden this issue appeared, it's been working fine for over 2 years so not sure what's happened here.

Started the container with these parameters:

root@nobsphp01:~# docker run --cap-add net_raw --cap-add net_admin -d -p 25:25 -p 80:80 quantumobject/docker-nagios_prod:version2.5

root@fb8792fa7dc2:/# su - nagios
$ ping nobux20
ping: icmp open socket: Operation not permitted

root@fb8792fa7dc2:/# ls -latr /bin/ping
-rwsr-xr-x 1 root root 64424 Mar 9 2017 /bin/ping

Have you got any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant