I have gitlab-runner running in a docker container.
I have a build step building my application and a Dockerfile in the ‘Docker’ folder, followed by the following deploy step:
deploy: image: docker:latest stage: deploy script: - 'cd Docker' - 'pwd' - 'docker build -t xxx/myapp .'
However, the last step fails with:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Is it possible to build, deploy and run a docker image on the host (or other remote docker), or will I need to install the runner locally on the docker host to do so?