{"action":"created","issue":{"url":"https://api.github.com/repos/openSUSE/docker-containers-build/issues/8","labels_url":"https://api.github.com/repos/openSUSE/docker-containers-build/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/openSUSE/docker-containers-build/issues/8/comments","events_url":"https://api.github.com/repos/openSUSE/docker-containers-build/issues/8/events","html_url":"https://github.com/openSUSE/docker-containers-build/issues/8","id":121135424,"number":8,"title":"Unable to ping from inside container","user":{"login":"ocafebabe","id":3409735,"avatar_url":"https://avatars.githubusercontent.com/u/3409735?v=3","gravatar_id":"","url":"https://api.github.com/users/ocafebabe","html_url":"https://github.com/ocafebabe","followers_url":"https://api.github.com/users/ocafebabe/followers","following_url":"https://api.github.com/users/ocafebabe/following{/other_user}","gists_url":"https://api.github.com/users/ocafebabe/gists{/gist_id}","starred_url":"https://api.github.com/users/ocafebabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocafebabe/subscriptions","organizations_url":"https://api.github.com/users/ocafebabe/orgs","repos_url":"https://api.github.com/users/ocafebabe/repos","events_url":"https://api.github.com/users/ocafebabe/events{/privacy}","received_events_url":"https://api.github.com/users/ocafebabe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-09T00:47:55Z","updated_at":"2016-02-01T22:59:16Z","closed_at":null,"body":"It seems that only the root user is able to ping a host from inside an openSUSE (13.2) based container:\r\n\r\n```ssh\r\n# docker run -i -t opensuse:13.2 /bin/bash\r\nbash-4.2# ping -c 1 google.com\r\nPING google.com (96.21.0.45) 56(84) bytes of data.\r\n64 bytes from cache.google.com (96.21.0.45): icmp_seq=1 ttl=59 time=8.40 ms\r\n\r\n--- google.com ping statistics ---\r\n1 packets transmitted, 1 received, 0% packet loss, time 0ms\r\nrtt min/avg/max/mdev = 8.401/8.401/8.401/0.000 ms\r\nbash-4.2# useradd test\r\nbash-4.2# su test\r\nbash-4.2$ ping -c 1 google.com\r\nping: icmp open socket: Operation not permitted\r\nbash-4.2$ \r\n```\r\n\r\nIt seems that RHEL 7 is affected by this issue as well:\r\n\r\nhttps://bugzilla.redhat.com/show_bug.cgi?id=1142311\r\n\r\nSo I tried to run the container with the specified switches (--cap-add net_raw --cap-add net_admin) but to no avail!\r\n"},"comment":{"url":"https://api.github.com/repos/openSUSE/docker-containers-build/issues/comments/178242585","html_url":"https://github.com/openSUSE/docker-containers-build/issues/8#issuecomment-178242585","issue_url":"https://api.github.com/repos/openSUSE/docker-containers-build/issues/8","id":178242585,"user":{"login":"cyphar","id":2888411,"avatar_url":"https://avatars.githubusercontent.com/u/2888411?v=3","gravatar_id":"","url":"https://api.github.com/users/cyphar","html_url":"https://github.com/cyphar","followers_url":"https://api.github.com/users/cyphar/followers","following_url":"https://api.github.com/users/cyphar/following{/other_user}","gists_url":"https://api.github.com/users/cyphar/gists{/gist_id}","starred_url":"https://api.github.com/users/cyphar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyphar/subscriptions","organizations_url":"https://api.github.com/users/cyphar/orgs","repos_url":"https://api.github.com/users/cyphar/repos","events_url":"https://api.github.com/users/cyphar/events{/privacy}","received_events_url":"https://api.github.com/users/cyphar/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T22:59:16Z","updated_at":"2016-02-01T22:59:16Z","body":"@flavio I'll take a look at this today."}}