testcontainers

Using testcontainers in a Jenkins Docker Agent: containers fail to start, NoRouteToHostException

落爺英雄遲暮 提交于 2019-12-02 06:32:47
I'm using a Jenkins declarative pipeline with Docker Agents to build and test my software, including running integration tests using testcontainers. I can run my testcontainers tests OK in my development environment (not using Jenkins), but they fail under Jenkins. The testcontainers Ryuk resource reaping daemon does not work 16:29:20.255 [testcontainers-ryuk] WARN o.t.utility.ResourceReaper - Can not connect to Ryuk at 172.17.0.1:32769 java.net.NoRouteToHostException: No route to host (Host unreachable) at java.base/java.net.PlainSocketImpl.socketConnect(Native Method) at java.base/java.net