upserve/docker-api

Cannot use Docker API gem with Docker Desktop on Windows

lucywyman opened this issue · 2 comments

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?

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.

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