This repository has been archived by the owner on Jul 9, 2023. It is now read-only.
docker-compose up -d fails #9
Comments
I have the same issue here using the gitlab-ci, here's my file: test_autoresponder:
stage: test
only:
refs:
- merge_requests
changes:
- stacks/autoresponder/**/*
image:
name: tiangolo/docker-with-compose:latest
services:
- docker:dind
script:
- docker-compose -p test -f docker-compose.test.yml up -d I even tried with sudo before the |
+1
|
Your container should have access to the Docker daemon, for that, mount the Docker sock as a volume. I think this post might help too: https://medium.com/better-programming/about-var-run-docker-sock-3bfd276e12fd |
Assuming the original issue was solved, it will be automatically closed now. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The text was updated successfully, but these errors were encountered: