首页 > 代码库 > docker问题

docker问题

Docker报错 WARNING: IPv4 forwarding is disabled. Networking will not work.

解决办法:

# vim  /usr/lib/sysctl.d/00-system.conf

添加如下代码:

net.ipv4.ip_forward=1

重启network服务

# systemctl restart network

docker问题