我对安装在 Ubuntu 14.04 VM 上的 docker 守护程序有疑问。日志显示 ipv6 已启用,因此 docker 似乎正在侦听此 IP 地址。本质上,这会影响Clair。我已确保根据此处的以下建议禁用 ipv6 。我还按照Docker 文档daemon.json
中 的说明禁用了 ipv6 。我的 docker 版本是.Docker version 17.06.1-ce, build 874a737
Docker 守护进程日志:
time="2018-02-20T20:33:17.736203462+01:00" level=info msg="IPv6 enabled; Adding default IPv6 external servers: [nameserver 2001:4860:4860::8888 nameserver 20 01:4860:4860::8844]"
克莱尔日志:
2018/02/20 20:43:51 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp [::]:6060: connect: cannot assign requested address"; Reconnecting to {[::]:6060 <nil>}
2018/02/20 20:46:14 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp [::]:6060: connect: cannot assign requested address"; Reconnecting to {[::]:6060 <nil>}