gpt4 book ai didi

docker - bash :/bin/ping: Operation not permitted on rhel 7. 1 个 docker 图像

转载 作者:行者123 更新时间:2023-12-02 18:47:06 24 4
gpt4 key购买 nike

[root@e732ba272c77 chef-repo]# ping www.google.com
bash: /bin/ping: Operation not permitted

尝试授予对/bin/ping 的执行权限但不起作用

最佳答案

[root@e732ba272c77 chef-repo]# setcap cap_net_raw+ep /bin/ping 


[root@e732ba272c77 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

关于docker - bash :/bin/ping: Operation not permitted on rhel 7. 1 个 docker 图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33109043/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com