I am running some Integration tests on a Windows 10 machine. I have a Java maven project that uses io.fabric8 docker maven plugin to manage docker images and containers.
I am having issues when my Integration Tests are trying to communicate with docker container.
I'm seeing the following error:
Failed to execute goal io.fabric8:docker-maven-plugin:0.19.0:start (prepare-it) on project some-app-name: Execution prepare-it of goal io.fabric8:docker-maven-plugin:0.19.0:start failed: Start-Job failed with unexpected exception: [rabbitmq:3-management-alpine] "rabbitmq": Timeout after 55148 ms while waiting on url http://127.0.0.1:65474 -> [Help 1]
I've tried running it with
mvn clean install -Dlocal.host=0.0.0.0
and mvn clean install -Dlocal.host=127.0.0.1
with no luck. Similiar error message as above.
My windows 10 environment variable is:
DOCKER_HOST
env variable is set to tcp://username-remotelinux.somecloudprovider.co.uk:2375
When I run docker ps, I see the following:
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
34b43c52ca96 rabbitmq:3-management-alpine "docker-entrypoint.s…" 13 seconds ago Up 11 seconds 4369/tcp, 5671/tcp, 0.0.0.0:5672->5672/tcp, 15671/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp docker_rabbitmq_1
I also checked the IP address of the container:
$ docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' c6314df1cd10
172.24.0.5
I've noticed that the ip address of the container is different to what I see when I run docker ps.
Is there a reason why its different?
How do I get this to work? Any ideas?
UPDATE 1: I've also tried using 0.33.0 version of the docker maven plugin with no luck. I'm getting the same error as above
UPDATE 2:
I've also tried running with mvn install -Ddocker.host=tcp://username-remotelinux.somecloudprovider.co.uk:2375
with no luck. There must be something I'm missing. How to get maven to table to remote docker