docker WARNING: IPv4 forwarding is disabled. 解决方法

[root@docker mynginx]

# docker run -d -p 5000:5000 registry
WARNING: IPv4 forwarding is disabled. Networking will not work.
38c2e912d402a15bedb1a13896d40a7a597dc5944c1f6868e9b7c62634e4c906

解决办法:

在宿主机上面执行:

# net.ipv4.ip_forward=1 >> /usr/lib/sysctl.d/00-system.conf

重启network和docker服务

# systemctl restart network && systemctl restart docker
This entry was posted in Docker and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *