-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hint: Connection to Docker failed. Is docker or Docker Desktop running? #90
Comments
I get this error on win11 when I run it in git bash instead of wsl. I have dockerd running in wsl only. It can't see dockerd from git bash. User ChatGPT Approaches to Running Docker in Docker You mount the Docker socket from the host into the container. This allows the container to use the Docker daemon on the host machine. bash python client = docker.from_env() This is a more complex approach where a Docker daemon (dockerd) is run inside the container itself. The Docker team provides a special Docker image called docker:dinD designed for this use case. bash Caveats DinD Performance: Running a Docker daemon inside a container can be resource-intensive and may introduce complexity, especially when dealing with networking and storage layers. Use Cases: Socket binding is more common for development purposes, while DinD is used for building Docker images or running isolated Docker environments inside CI pipelines. Conclusion |
Thank you for the quick reply, I'll work through your advice and post a follow-up. As far as I can tell I am using WSL, but I also remember seeing a setting on Docker for Bash during install, if I remember correctly. |
I'm also getting this error on Mac and apple silicon. Docker info works. Docker run hello-works. But getting: Error: Traceback (most recent call last): |
me too, using Macbook M1 with Sonoma 14.5. Docker is running, but the agent zero fails with the same line error.
any solution? |
Thanks in advance. I built the image in docker with the following Dockerfile:
I get the following error on Widows 11 PC, but not Widows 10 PC:
I've been using Google and ChatGPT to try and solve, but the suggestions have not worked.
Any ideas? Thanks!
The text was updated successfully, but these errors were encountered: