M
Mikhail Batcer
Guest
I have Ubuntu 18.04 running in WSL2, from which I want to connect to Docker Desktop running on Windows.
From cmd.exe I see that Docker service is listening on 127.0.0.1:2375:
C:\Windows\System32>curl 127.0.0.1:2375/info
{"ID":"Z2IX:WLIX:FT2V:ZQYY:6222:M6Y6:EGZW:6D2G:EGVY:YABG:VYUM:MB2A","Containers":6,"ContainersRunning":2,"ContainersPaused":0
...
But in WSL2, I got this output by `docker info`:
`ERROR: Cannot connect to the Docker daemon at tcp://127.0.0.1:2375. Is the docker daemon running?`
No connection to 127.0.0.1:2375 from WLS2:
$ curl 127.0.0.1:2375
curl: (7) Failed to connect to 127.0.0.1 port 2375: Connection refused
The option "Expose daemon on tcp://localhost:2375 without TLS" is ticked.
Continue reading...
From cmd.exe I see that Docker service is listening on 127.0.0.1:2375:
C:\Windows\System32>curl 127.0.0.1:2375/info
{"ID":"Z2IX:WLIX:FT2V:ZQYY:6222:M6Y6:EGZW:6D2G:EGVY:YABG:VYUM:MB2A","Containers":6,"ContainersRunning":2,"ContainersPaused":0
...
But in WSL2, I got this output by `docker info`:
`ERROR: Cannot connect to the Docker daemon at tcp://127.0.0.1:2375. Is the docker daemon running?`
No connection to 127.0.0.1:2375 from WLS2:
$ curl 127.0.0.1:2375
curl: (7) Failed to connect to 127.0.0.1 port 2375: Connection refused
The option "Expose daemon on tcp://localhost:2375 without TLS" is ticked.
Continue reading...