Cannot restart Docker container due to input/output error?

Ropstah picture Ropstah · Jan 6, 2018 · Viewed 7.1k times · Source

I noticed my Redis instance on my local pc stopped working. I use Docker to host it and tried to issue a restart command on the container as ps stated it was running*.

docker restart my-redis

However this yielded the following error message:

Error response from daemon: Cannot restart container my-redis: driver failed programming external connectivity on endpoint my-redis (...): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:32777:tcp:172.17.0.2:6379: input/output error

*I've been running a DNS server on the same machine where I run Docker. There is a service started when my PC boots which also listens at port 53. I need to shut down this process in order for my DNS server to boot up properly. I suspect this is a process used by Docker and as a result it might be able to start up the container initially, but fails when issued a restart (because of that process being shut down).

I already set up Docker to use my local DNS server (under Settings -> Network in Docker for Windows), but I'm not really sure if this is at all related to the input/output error that breaks my container.

Answer

SangminKim picture SangminKim · Jan 6, 2018

The problem seems to have happened for many(usually on Windows) and not solved clearly. Refer this issue.

However, there would be a temporary method to solve it, which is disabling experimental features(in the above issue, many are saying it is solved after disabling experimental features).

I am not sure how to disable it and which OS you are using but you could easily google to find how to disable it for the OS.