zl程序教程

您现在的位置是:首页 >  工具

当前栏目

docker warning ipv4 forwarding is disabled. networking will not work

Docker not is WARNING work will Disabled ipv4
2023-09-27 14:22:23 时间
# vi /etc/sysctl.conf
添加如下代码:
    net.ipv4.ip_forward=1
重启network服务
# systemctl restart network
 
查看是否修改成功
# sysctl net.ipv4.ip_forward

$ sysctl net.ipv4.ip_forward net.ipv4.ip_forward = 1