I was trying to follow your series on Jenkins in GKE and I ran into a bit of an issue when trying to have an agent able to build Docker images.

Basically, I built a custom image with docker (and even using your sh script as an additional entrypoint step) but even though the correct image is pulled, the agent is never able to find the docker daemon.

I’ve tried mounting docker.sock but that leads all sorts of hell.

I would like to be able to set a value for DOCKER_HOST on a tcp port but I’m not sure what I could use to target the host daemon (I presume) from inside the agent.


Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store