I guess this is a very general question, but how do i access the localhost of the container itself?
I can ping the localhost which i guess is directed to the host, but telnet of localhost returns a
If the answer is to use
--network=host. The second problem that arises is that most of my test cases written in go for a library randomly timeout.
Client: Version: 17.06.2-ce API version: 1.30 Go version: go1.8.4 Built: Fri Nov 10 00:50:37 2017 OS/Arch: linux/amd64 Server: Version: 17.06.2-ce API version: 1.30 (minimum version 1.12) Go version: go1.8.4 Built: Fri Nov 10 00:51:08 2017 OS/Arch: linux/amd64 Experimental: false
Environment is Jenkins master sending commands via JNLP to jenkins slave inside which the code is executed.
P.S. - The test cases run successfully on non dockerized environment