[[email protected] chef-repo]# ping www.google.com
bash: /bin/ping: Operation not permitted
試圖給依賴/ bin /平執行權限,但沒有工作bash中:/ bin中/平:操作不允許在RHEL 7.1泊塢窗圖像
[[email protected] chef-repo]# ping www.google.com
bash: /bin/ping: Operation not permitted
試圖給依賴/ bin /平執行權限,但沒有工作bash中:/ bin中/平:操作不允許在RHEL 7.1泊塢窗圖像
[[email protected] chef-repo]# setcap cap_net_raw+ep /bin/ping
[[email protected] chef-repo]# ping www.google.com
PING www.google.com (173.194.121.50) 56(84) bytes of data.
64 bytes from iad23s26-in-f18.1e100.net (173.194.121.50): icmp_seq=1 ttl=49 time=69.1 ms
64 bytes from iad23s26-in-f18.1e100.net (173.194.121.50): icmp_seq=2 ttl=49 time=68.7 ms
謝謝,它也幫助我正式發佈了fedora鏡像 – vodolaz095
你應該開始CAP_NET_ADMIN特權泊塢窗容器ping命令需要這個。
docker run --cap-add net_raw --cap-add net_admin <other options> <container name>
您可以參考此鏈接的詳細信息,這一點:How to enable ping in RHEL 7.1
有什麼形象的名字嗎? –
RHEL 7.1官方圖片 – debianmaster