My build job is running in docker container. I’m setting up a remote docker through which we run testcontainers in the way described here:
https://circleci.com/docs/2.0/building-docker-images/
From the logs, I see that Docker host IP address is 172.17.0.1. However the application expects it to be locally and I get ‘Connection timed out’ when communicating to this host. Is it possible to run the same docker but on localhost (e.g. docker in docker)?
2 Likes
I’ve a very similar requirement as well. So far it doesn’t seem possible to connect to my running docker container at all from the primary docker container
Depends what you mean by “connect”. Sockets of all kinds are just fine, but Docker volumes have a technical limitation that prevents them working. What are you trying to do?
If you want to run several thing in Docker, then Docker Compose is an option - it works just fine.