美文网首页
解决办法 WARNING: IPv4 forwarding is

解决办法 WARNING: IPv4 forwarding is

作者: interboy | 来源:发表于2022-05-19 21:53 被阅读0次

运行docker run命令时,返回WARNING: IPv4 forwarding is disabled. Networking will not work.错误。
执行如下代码
echo "net.ipv4.ip_forward=1" >>/usr/lib/sysctl.d/00-system.conf
systemctl restart network && systemctl restart docker

相关文章

网友评论

      本文标题:解决办法 WARNING: IPv4 forwarding is

      本文链接:https://www.haomeiwen.com/subject/aokxprtx.html