Make docker use IPv4 for port binding

后端 未结 6 1737
鱼传尺愫
鱼传尺愫 2020-11-29 20:36

I have docker host and inside I have one container.

The docker host is binding the port on IPv6 interface only, not on IPv4.

This is the output



        
6条回答
  •  长情又很酷
    2020-11-29 21:24

    For CentOS users,

    I've got same issue on CentOS7 and setting net.ipv4.ip_forward to 1 solves the issue. Please, refer to Docker Networking Disabled: WARNING: IPv4 forwarding is disabled. Networking will not work for more details.

提交回复
热议问题