Make docker use IPv4 for port binding

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

    By default, docker uses AF_INET6 sockets which can be used for both IPv4 and IPv6 connections. This causes netstat to report an IPv6 address for the listening address.

    From RedHat https://access.redhat.com/solutions/3114021

提交回复
热议问题