for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Error starting userland proxy: mkdir /port/tcp:0.0.0.0:80:tcp:172.17.0.2:5000: input/output error.

Open signsmile opened this issue 9 years ago • 231 comments

Expected behavior

Actual behavior

Information

  • Diagnostic ID from "Diagnose & Feedback" in the menu.
  • a reproducible case if this is a bug, Dockerfiles FTW
  • page URL if this is a docs issue or the name of a man page
  • host distribution and version (Windows version, build number, etc)

Steps to reproduce the behavior

  1. ...
  2. ...

signsmile avatar Mar 12 '17 08:03 signsmile

Can you please add a diagnostic id and provide more details?

friism avatar Mar 15 '17 17:03 friism

Hello

ID : 9F12A71E-4AE6-47EC-8210-1ED7FD3BEFA3/2017-03-22_12-10-00

Using docker compose with "Ports" enable to access web server in localhost.

Example : ERROR: for mssql Cannot start service mssql: driver failed programming external connectivity on endpoint serveurMsSQL (6ddab67975bf1feeae04902befbe6caf557e782859cfdf4a76e0a4fa47a251d2): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:1443 :tcp:172.18.0.3:1433: input/output error

OS : Windows 10 x64 Version 1607 / Build : 14393.693

EDIT 1 : Desactiving "Experimantal Features" (checked by default) solve my issue

Magdaflowne avatar Mar 22 '17 11:03 Magdaflowne

Same error message for me. Should I open a new ticket? Just in case it's helpful here: ID: 92AFBA65-1F89-4C80-8352-FE13334E71DC/2017-03-22_10-18-19 Version 17.03.0-ce-win1 (10296) Channel: stable e5a07a1 OS: Windows 10 Enterprise 10.0.14393 Build 14393

While doing further tests for this ticket, I made the following observation: The failing command was a simple docker run command that has a port binding with the full ip.

For example

docker run -p 192.168.33.33:22:22 ...

The IP was incorrect. Once I made the correction, the command worked as expected.

I hope that helps.

pf-curtis-mitchell avatar Mar 22 '17 14:03 pf-curtis-mitchell

@Magdaflowne do you have the docker-compose file that you're trying to run?

@pf-curtis-mitchell no reason to open a new ticket, and happy to hear you got it working.

friism avatar Mar 22 '17 16:03 friism

I also get this problem OS: Windows 10 Enterprise virtualization: native hyper-v

does not matter if I use powershell or ubuntu shell, same result

all you have to do to reproduce the issue is: docker run -p 8080:8080 hello-world or any other port for that matter

RadBuilds avatar Mar 22 '17 22:03 RadBuilds

I also get this issue on an image which was working before. I also reproduce with the simple "docker run -p 8080:8080 hello-world"

my version of Docker is 1.13.1 (10072) I'm on Windows 10

I made no update of Windows, neither Docker between the working/failing state.

EDIT: a restart and an upgrade to Docker Tooling 17.03.0-ce-win1 (10296) has fixed the issue for me

apupier avatar Mar 23 '17 18:03 apupier

what do you mean by "docker tooling" ? my Docker version is 1.12.3, build 6b644ec (stable) and if I check for updates I get the info, that its the latest one

EDIT: I found something like that in logs: Version: 17.03.0-ce-win1 (10296) seems to be the same version as what you pasted. no idea whats that ;p

EDIT2: issue seems to be gone for no apparent reason...

RadBuilds avatar Mar 23 '17 20:03 RadBuilds

Post updated

Desactiving "Experimantal Features" (checked by default) solve my issue

Magdaflowne avatar Mar 24 '17 06:03 Magdaflowne

Same Problem with Docker version 17.03.1-ce, build c6d412e Windows 10 Enterprise v1607 Build 14393.953 virtualization: native hyper-v

webdesignberlin avatar Mar 31 '17 09:03 webdesignberlin

Same issue...

ID: FFAB1CCB-ED9B-4799-A2F7-84B7501121FC/2017-04-06_11-01-38 Windows 10 Version 1607 Build 14393.726, using Hyper-V

Using this docker image: puckel/docker-airflow https://github.com/puckel/docker-airflow

As @Magdaflowne said, unchecking "Experimental features" under "Daemon" seems to have fixed this issue.

ajhodges avatar Apr 06 '17 15:04 ajhodges

  1. Stop all the running containers docker stop $(docker ps -a -q) then
  2. Stop the Docker on your machine & restart it.

raghavmac avatar May 15 '17 15:05 raghavmac

solution by @raghavmac works for me, thanks!

ikrysenko-selectica avatar Jul 25 '17 10:07 ikrysenko-selectica

Windows Powershell equivalent of @raghavmac's one-liner to stop all running containers: docker ps -a -q | ForEach { docker stop $_ }

ahemsath avatar Aug 18 '17 16:08 ahemsath

Hi!

Unfortunately we are currently facing the same errors.

We are running a freshly installed Windows Server 2016 where our developers work using RDP.

There are just two containers at the moment: apache-dev (based on centos:7) and redis-dev.

The redis container is started as follows:

docker run --rm -v c:/apps/redis/redis.log:/var/log/redis.log -v c:/apps/redis/redis.conf:/usr/local/etc/redis/redis.conf:ro -itd -p 6379:6379 --name redis-dev redis:3 redis-server /usr/local/etc/redis/redis.conf

Both work as expected, but are not heavily used, since we're just evaluating docker in our new environment. After a few hours (mostly over night) - I return to the server (which has not been used meanwhile) just to notice, that there seems to be something wrong - e.g. the php application running on the apache container complaining that redis is not reachable, or that it is not able to access our Oracle Database (which does not run in a containerized environment). Apache itself was reachable through the local browser at that time.

I then stop both containers.

If I try to start the containers again, I get something like this:

C:\apps\redis>start_redis.bat b33f8ccf8121de2e8e12e00e823ec891f40a104c8576a46d83e9b22a9de4ed9c docker: Error response from daemon: driver failed programming external connectivity on endpoint redis-dev (b36dc0f21c4f40665b38dac87e5a4eb7482c72cd8c9430fadcecac1224be56b0): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:6379:tcp:172.17.0.3:6379: input/output error.

The batch file just contains the commmand from above. If I use "Restart docker" on the "Reset" tab in the docker gui, I am again able to start both containers.

This issue hit me various times. Another example: I spawned a bash inside the apache container to test a few things but noticed, there was no internet connectivity. So I stopped the container and got the very same error on starting it. Restarted docker, started the container - spawned a bash, everything ok again.

It always seems like network connectivity gets lost after some time - and whatever happens prevents the containers to start again, after they have been stopped.

I uploaded a diagnostic, hoping that it helps: 0399F110-0301-424D-B0F7-3CC0E0C7C8CC/2017-08-22_09-16-15

I'm happy to provide more details - just don't know where to start my search...

Thanks!

Nico

nscheer avatar Aug 22 '17 07:08 nscheer

Deactivating experimental features also worked for me

22samurai avatar Nov 01 '17 20:11 22samurai

Deactivating experimental features also worked for me

oskaremil avatar Nov 10 '17 07:11 oskaremil

Got this error today with no apparent reason after working well always, and deactivating experimental features solved it.

endlos avatar Nov 10 '17 14:11 endlos

+1 to fix by disabling experimental features, it would be nice to know which feature was causing it.

rmolinag avatar Dec 14 '17 13:12 rmolinag

Anyone that has 'solved' disabling experimental features (that needs a reboot of the VM that we already know can fix the problem) has never seen it happen again for a month or more? We continue experimenting this issue after some days or weeks of uptime, the only solution so far seems to reboot everything, disabling experimental features did nothing. This is the main issue that prevent us to going in production with Docker for Windows, we can't reboot production's vm every other week.

Jamby93 avatar Dec 18 '17 19:12 Jamby93

Disabling "Experimental Features" in the Settings/Daemon menu, restarting docker and then stopping all images worked for me.

image

daniel-gwilt-software avatar Dec 21 '17 01:12 daniel-gwilt-software