gocd / docker-gocd-agent

GoCD Agent Docker image
https://hub.docker.com/r/gocd/
47 stars 37 forks source link

Agent unable to connect to Server hosted on docker container #38

Closed hassanfarid closed 5 years ago

hassanfarid commented 7 years ago

I create docker image using command below:

DOCKER_HOST_IP=10.x.x.x
SERVER_URL=https://$DOCKER_HOST_IP:32772/go
docker run -v /data/godata_agent:/godata -d -e GO_SERVER_URL=$SERVER_URL gocd/gocd-agent-centos-7:v17.7.0

In browser, I can access https://$DOCKER_HOST_IP:32772/go ; however the server does not have SSL support.

The Agent gives this error:

2017-08-07 16:35:35,750 [main ] ERROR go.agent.launcher.ServerBinaryDownloader:81 - Couldn't update admin/agent-launcher.jar. Sleeping for 1m. Error: java.net.NoRouteToHostException: No route to host (Host unreachable)

dotslashme commented 6 years ago

Most likely you're having collisions between the docker subnet and the gocd-server ip. Try changing the subnet (bip) of your docker subnet to something else, like 172.31.0.1/16

varshavaradarajan commented 5 years ago

Closing since there has been no activity.