Make docker use IPv4 for port binding

后端 未结 6 1742
鱼传尺愫
鱼传尺愫 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:21

    Setting net.ipv6.conf.all.forwarding=1 will fix the issue.

    This can be done on a live system using sudo sysctl -w net.ipv6.conf.all.forwarding=1

提交回复
热议问题