Ensure that ~/.docker is always mounted
Ensure that `docker login` works also after the bazel server is started.
If we only mount when the credentials already exist, we may miss later
logins.
@@ -96,10 +96,10 @@ _rsync \
"rsync://root@127.0.0.1:${RSYNCD_PORT}/build"
volumes="-v ${BUILDER}:/root:rw,z"
-# if exists, append .docker directory as volume
-if [ -d "${HOME}/.docker" ]; then
+
+# append .docker directory as volume
+mkdir -p "${HOME}/.docker"
volumes="$volumes -v ${HOME}/.docker:/root/.docker:ro,z"
-fi
# Ensure that a bazel server is running
