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.