Skip to content

Instantly share code, notes, and snippets.

@danielpclark
Created December 29, 2018 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielpclark/4e1f7d3d2b956aded9c5b7a9016dcdff to your computer and use it in GitHub Desktop.
Save danielpclark/4e1f7d3d2b956aded9c5b7a9016dcdff to your computer and use it in GitHub Desktop.
The following configuration doesn't work.
docker run -d --name gitlab-dind --privileged --restart always --network gitlab-runner-net -v /var/lib/docker -v /etc/gitlab-runner:/etc/gitlab-runner -v /var/run/docker.sock:/var/run/docker.sock docker:18.06.1-ce-dind --storage-driver=overlay2
docker run -d --name gitlab-runner --restart always --network gitlab-runner-net -v /etc/gitlab-runner:/etc/gitlab-runner -e DOCKER_HOST=tcp://gitlab-dind:2375 gitlab/gitlab-runner:alpine
docker run -it --rm -v /etc/gitlab-runner:/etc/gitlab-runner gitlab/gitlab-runner:alpine register --executor docker --docker-image docker:18.06.1-ce --docker-volumes /var/run/docker.sock:/var/run/docker.sock
@danielpclark
Copy link
Author

docker run -i -t -v (pwd):/app -w /app docker/compose:1.23.2 build
ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment