1. 程式人生 > >docker啟動容器報錯:IPv4 forwarding is disabled. Networking will not work

docker啟動容器報錯:IPv4 forwarding is disabled. Networking will not work

報錯 onf con lan isa war ces -s comm

報這個錯誤會導致宿主機以外的pc 訪問不了容器

按照網上的解決辦法:

/usr/lib/sysctl.d/00-system.conf文件後加net.ipv4.ip_forward=1 即可

docker啟動容器報錯:IPv4 forwarding is disabled. Networking will not work