Open justgotthis opened 4 years ago
Do the daemon logs show anything useful?
Note that 18.09.3 is not the latest patch release for the 18.09 release (v18.09.9 is the latest patch release for that). Also, 18.09.x reached EOL.
From your example:
[2020-01-09 19:25:18] ++ docker -H unix:///var/run/docker.sock inspect '--format={{.State.Running}}' proxy
[2020-01-09 19:25:18] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
I notice the timestamps in front of those commands; are you running these steps from a script? Is that script running in a container?
I did not get anything in daemon logs with DEBUG mode unfortunately:
Jan 14 03:29:27 host dockerd[29692]: time="2020-01-14T03:29:27.054521805+05:30" level=debug msg="Calling GET /v1.38/containers/json?filters=%7B%22label%22%3A%7B%22io.kubernetes.docker.type%3Dpodsandbox%22%3Atrue%7D%7D&limit=0" Jan 14 03:29:27 host dockerd[29692]: time="2020-01-14T03:29:27.070729477+05:30" level=debug msg="Calling GET /v1.38/containers/json?all=1&filters=%7B%22label%22%3A%7B%22io.kubernetes.docker.type%3Dcontainer%22%3Atrue%7D%2C%22status%22%3A%7B%22running%22%3Atrue%7D%7D&limit=0" Jan 14 03:29:27 host dockerd[29692]: time="2020-01-14T03:29:27.092481067+05:30" level=debug msg="Calling GET /v1.38/containers/json?filters=%7B%22label%22%3A%7B%22io.kubernetes.docker.type%3Dpodsandbox%22%3Atrue%7D%7D&limit=0" Jan 14 03:29:27 host dockerd[29692]: time="2020-01-14T03:29:27.107508570+05:30" level=debug msg="Calling GET /v1.38/containers/json?all=1&filters=%7B%22label%22%3A%7B%22io.kubernetes.docker.type%3Dcontainer%22%3Atrue%7D%2C%22status%22%3A%7B%22running%22%3Atrue%7D%7D&limit=0" Jan 14 03:29:27 host dockerd[29692]: time="2020-01-14T03:29:27.166262264+05:30" level=debug msg="Calling GET /v1.31/containers/json?limit=0" Jan 14 03:29:27 host dockerd[29692]: time="2020-01-14T03:29:27.355843800+05:30" level=debug msg="Calling GET /v1.31/containers/json?limit=0" . . Jan 14 03:29:27 host dockerd[29692]: time="2020-01-14T03:29:27.392279568+05:30" level=debug msg="Calling GET /v1.31/containers/1f55ad426540d6691a7ba44c8cd1df160c64d21453f94afcf03d40d223c60a58/stats?stream=0" Jan 14 03:29:27 host dockerd[29692]: time="2020-01-14T03:29:27.392847036+05:30" level=debug msg="Calling GET /v1.31/containers/a786ac9f52f6ee68f3cf5615fb833ba1434adf3866961ca485771c5dc8720c55/stats?stream=0"
You are correct, these log entries are from a script which takes the status of docker. As soon as the communication through the socket goes down, it complains that it cannot connect to the Docker daemon. At this point, we stop receiving logs from containers as there is no more communication to the Docker daemon. Any insight would be helpful.
Thanks, -Luis.
Expected behavior
Docker socket communication should be stable.
Actual behavior
Docker socket communication is intermittent, cutting in and out randomly.
Steps to reproduce the behavior
Leave docker running and the Docker socket gets impacted intermittently. Unable to reproduce at will.
Output of
docker version
:Output of
docker info
: