解决办法 WARNING: IPv4 forwarding is
2022-05-19 本文已影响0人
interboy
运行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