I’ve got a job that needs to build a docker image on a primary container that has the docker on it already, so I’ve configured it like so:
name: Docker build
docker build -t org/name .`
Probably most important bit to point out is that right after I ask for a remote docker I try to use it.
Around ~20% of the time or so my next docker command fails with
Cannot connect to the Docker daemon at tcp://x.x.x.x:2376. Is the docker daemon running?
It appears that setup_remote_docker exits before the remote host is fully ready sometimes. Is this expected behavior, or should I be doing this differently?