查看
(base) [root@VM-12-17-centos test]# vim /etc/sysctl.conf
添加代码: net.ipv4.ip_forward=1
也有人说下面这个文件:反正我试试了没啥用
(base) [root@VM-12-17-centos test]# vim /usr/lib/sysctl.d/00-system.conf
第二步:重启network服务:
systemctl restart network
Original: https://www.cnblogs.com/wqbin/p/15717416.html
Author: wqbin
Title: dockerFile [Warning] IPv4 forwarding is disabled. Networking will not work.
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/534320/
转载文章受原作者版权保护。转载请注明原作者出处!