docker 容器啟動提示W(wǎng)ARNING: IPv4 forwarding is disabled. Networking will not work.
解決方法:
vim /usr/lib/sysctl.d/00-system.conf
追加
net.ipv4.ip_forward=1
重啟網(wǎng)絡(luò):
[root@localhost ~]# systemctl restart network
問題解決
docker 容器啟動提示W(wǎng)ARNING: IPv4 forwarding is disabled. Networking will not work.
解決方法:
vim /usr/lib/sysctl.d/00-system.conf
追加
net.ipv4.ip_forward=1
重啟網(wǎng)絡(luò):
[root@localhost ~]# systemctl restart network
問題解決