docker run 报错 Error starting userland proxy: listen tcp6 [::]:: socket: address family not supported by protocol.

场景:执行 docker run 失败

报错:Error starting userland proxy: listen tcp6 [::]:: socket: address family not supported by protocol.

一个解决方法:

即修改命令,指定 ipv4 格式的地址(默认是 ipv6),比如 docker run -p 0.0.0.0:8080:8080 xxxx

issue链接:https://github.com/moby/moby/issues/42288
上文回复链接:https://github.com/moby/moby/issues/42288#issuecomment-820134440

posted @ 2023-02-06 17:16  egu0o  阅读(483)  评论(0编辑  收藏  举报