Skip to content
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

Cannot use Docker API gem with Docker Desktop on Windows #572

Open
lucywyman opened this issue Mar 17, 2021 · 2 comments
Open

Cannot use Docker API gem with Docker Desktop on Windows #572

lucywyman opened this issue Mar 17, 2021 · 2 comments

Comments

@lucywyman
Copy link

I created an issue for this with Excon, as the specific issue is coming from when we try to connect to the Socket for Docker: excon/excon#738. I'm not sure if there's any path forward for getting the gem to work on Windows?

@nogweii
Copy link

nogweii commented Oct 9, 2022

Not sure if you already realized this, but this is because Docker Desktop on Windows exposes the docker HTTP API over a TCP socket on the loopback interface. (Since Windows doesn't support UNIX socket files, especially bridged into a VM.)

I believe the default (once exposing is enabled in Docker Desktop) is tcp://localhost:2375.

@abenevaut
Copy link

i do DOCKER_URL=tcp://localhost:2375 bundle exec rspec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants