docker部署遇到的问题集合持续更新
Posted fangyuan303687320
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker部署遇到的问题集合持续更新相关的知识,希望对你有一定的参考价值。
[INFO ][2018-07-05 11:43:34,237][Log:193] Logging initialized @4964ms to org.eclipse.jetty.util.log.Slf4jLog [INFO ][2018-07-05 11:43:34,313][Server:374] jetty-9.4.9.v20180320; built: 2018-03-20T20:21:10+08:00; git: 1f8159b1e4a42d3f79997021ea1609f2fbac6de5; jvm 1.8.0_121-b13 [INFO ][2018-07-05 11:43:34,376][AbstractConnector:289] Started [email protected]{HTTP/1.1,[http/1.1]}{0.0.0.0:9999} [INFO ][2018-07-05 11:43:34,376][Server:411] Started @5105ms [INFO ][2018-07-05 11:43:34,377][JettyServer$1:47] >>>>>>>>>>> xxl-job jetty server start success at port:9999. [ERROR][2018-07-05 11:43:34,385][IpUtil:52] Failed to retriving ip address, 37166645f095: 37166645f095: Name or service not known java.net.UnknownHostException: 37166645f095: 37166645f095: Name or service not known at java.net.InetAddress.getLocalHost(InetAddress.java:1505) ~[?:1.8.0_121] at com.xxl.job.core.util.IpUtil.getFirstValidAddress(IpUtil.java:47) ~[xxl-job-core-1.9.1.jar!/:?] at com.xxl.job.core.util.IpUtil.getAddress(IpUtil.java:92) ~[xxl-job-core-1.9.1.jar!/:?] at com.xxl.job.core.util.IpUtil.getIp(IpUtil.java:102) ~[xxl-job-core-1.9.1.jar!/:?] at com.xxl.job.core.util.IpUtil.getIpPort(IpUtil.java:115) ~[xxl-job-core-1.9.1.jar!/:?] at com.xxl.job.core.thread.ExecutorRegistryThread.start(ExecutorRegistryThread.java:44) ~[xxl-job-core-1.9.1.jar!/:?] at com.xxl.job.core.rpc.netcom.jetty.server.JettyServer$1.run(JettyServer.java:50) ~[xxl-job-core-1.9.1.jar!/:?] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121] Caused by: java.net.UnknownHostException: 37166645f095: Name or service not known at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) ~[?:1.8.0_121] at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928) ~[?:1.8.0_121] at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323) ~[?:1.8.0_121] at java.net.InetAddress.getLocalHost(InetAddress.java:1500) ~[?:1.8.0_121] ... 7 more
docker中运行一jar服务,报上面的错,但是在宿主机上单独运行没问题
查阅了下英文资料,老外给出的解决方法是
t worked with --add-host and --hostname
以上是关于docker部署遇到的问题集合持续更新的主要内容,如果未能解决你的问题,请参考以下文章