Docker builds/commands not working?
Using the demo setup of this project, I'm unable to do anything with docker inside my builds. Using the following .gitlab-ci.yml:
image: docker:latest
stages:
- build
build:
stage: build
script:
- docker images
I get the following error:
$ docker images
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
ERROR: Job failed: error executing remote command: command terminated with non-zero exit code: Error executing in Docker Container: 1
From the video of your demo (https://www.youtube.com/watch?v=3A8mdJl_icM) I got no clues on how you use docker in your build. Somehow you got a magic command
which you tell build
and deploy
in your .gitlab-ci.yml, but no further clues.
Are you using docker-in-docker, or docker socket? How do you expose the docker socker in containers running in kubernetes? What am I missing? I purely followed the steps in the README.md, deployed to a Kubernetes cluster in GCloud.