Docker periodically not connecting
- [X] I have tried with the latest version of my channel (Stable or Edge)
- [ ] I have uploaded Diagnostics: No way to generate / upload diagnostics for this issue. No debugging output, as show below.
Expected behavior
Docker should always answer on the TCP port when it's listening on the port.
Actual behavior
It does not. Every 2 - 3 connections fail, debugging shows no output. Verified with netcat that the port is listening and answering.
Information
- Is it reproducible? Yes
- Is the problem new? Yes
- Windows Version: Windows 10 1803
- Docker for Windows Version: 18.06.1-ce, build e68fc7a
Docker is running in Windows; daemon is exposed and I'm using the Ubuntu docker client inside of Windows Subsystem for Linux.
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ date
Mon Oct 22 14:23:16 DST 2018
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ docker -D ps
Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ docker -D ps
Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ docker -D ps
Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ docker -D ps
Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ docker -D ps
Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ docker -D ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ docker -D ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ docker -D ps
Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ docker -D ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ docker -D ps
Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ docker -D ps
Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ docker -D ps
Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ docker -D ps
Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ docker -D ps
Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ docker -D ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ docker -D ps
Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ docker -D ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ docker -D ps
Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ docker -D ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$ date
Mon Oct 22 14:23:37 DST 2018
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/partisan$
I'm happy to provide further debugging, but I'm not sure what else to do. I've tried with the debug switch: no output; I've tried increasing the log level to debug: no output.
Just tried docker on my work machine after several months of not using it, updated everything to latest and seeing this same behavior.
Information Is it reproducible? Yes Is the problem new? Yes Windows Version: Windows 10 1803 Docker for Windows Version: 18.09.1-ce, build 4d60db4 Docker is running in Windows; daemon is exposed and I'm using the Ubuntu docker client inside of Windows Subsystem for Linux. version is ubuntu 18.09.0 build 4d60db4
WSL shell
~ docker container ls
Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
~ docker container ls
Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
~ docker container ls
Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
~ docker container ls
Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
~ docker container ls
Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
~ docker container ls
Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
~ docker container ls
Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
~ docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
~ docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
Everything works fine from powershell. FWIW, my work machine is running symantec endpoint protection, but this worked fine several months ago. I'll try to replicate on my home machine tonite
I am seeing the same thing. I have four containers running for about a week, Then I stopped them, and attempted to start them again. Two managed to start, and two are giving "Is the docker daemon running?" as above.
If I do the 'docker ps' as above, I get the same behavior as in the original problem report.
The port seems to be there, I can reliably telnet to port 2375 from inside the WSL session. So it's not like it lost the port.
Stopping/starting docker or the docker service doesn't fix the issue. Restarting WSL environment fixes the problem, at least temporarily.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30d of inactivity.
Prevent issues from auto-closing with an /lifecycle frozen comment.
If this issue is safe to close now please do so.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked