docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.85k stars 287 forks source link

Port mapping is causing input/output error on docker and docker-compose #1983

Closed renatorroliveira closed 6 years ago

renatorroliveira commented 6 years ago

Every time I try to start a container mapping a host port to a container port I got an input/output error.

DIagnostic ID: EB099613-80A3-47E8-BC28-7DF8C902BE57/2018-04-27_15-13-34

docker-compose file:

version: "3"
networks:
  my-services:
    driver: bridge
services:
  ml-service:
    image: python
    working_dir: /opt/ml-service
    entrypoint: python app.py
    ports:
      - "8081:5000"
    volumes:
      - ./machine-learning:/opt/ml-service
    networks:
      - my-services

Output when trying to start a container:

ERROR: for application-services_ml-service_1  Cannot start service ml-service: driver failed programming external connectivity on endpoint application-services_ml-service_1 (137ed63db8662b5804605b3a0ea1f541b1e87d613751350cc4705a5b2b698804): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:8081:tcp:172.18.0.2:5000: input/output error

netstat -abn output:

Conexões ativas

  Proto  Endereço local         Endereço externo       Estado
  TCP    0.0.0.0:80             0.0.0.0:0              LISTENING
 [httpd.exe]
  TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
  RpcSs
 [svchost.exe]
  TCP    0.0.0.0:443            0.0.0.0:0              LISTENING
 [httpd.exe]
  TCP    0.0.0.0:445            0.0.0.0:0              LISTENING
 Não é possível obter informações de propriedade
  TCP    0.0.0.0:2179           0.0.0.0:0              LISTENING
 [vmms.exe]
  TCP    0.0.0.0:3306           0.0.0.0:0              LISTENING
 [mysqld.exe]
  TCP    0.0.0.0:5357           0.0.0.0:0              LISTENING
 Não é possível obter informações de propriedade
  TCP    0.0.0.0:5432           0.0.0.0:0              LISTENING
 [postgres.exe]
  TCP    0.0.0.0:7680           0.0.0.0:0              LISTENING
  DoSvc
 [svchost.exe]
  TCP    0.0.0.0:27036          0.0.0.0:0              LISTENING
 [Steam.exe]
  TCP    0.0.0.0:49664          0.0.0.0:0              LISTENING
 Não é possível obter informações de propriedade
  TCP    0.0.0.0:49665          0.0.0.0:0              LISTENING
  EventLog
 [svchost.exe]
  TCP    0.0.0.0:49666          0.0.0.0:0              LISTENING
  Schedule
 [svchost.exe]
  TCP    0.0.0.0:49667          0.0.0.0:0              LISTENING
  SessionEnv
 [svchost.exe]
  TCP    0.0.0.0:49668          0.0.0.0:0              LISTENING
 [spoolsv.exe]
  TCP    0.0.0.0:49669          0.0.0.0:0              LISTENING
 Não é possível obter informações de propriedade
  TCP    0.0.0.0:49714          0.0.0.0:0              LISTENING
 [lsass.exe]
  TCP    0.0.0.0:54882          0.0.0.0:0              LISTENING
 [Spotify.exe]
  TCP    0.0.0.0:57621          0.0.0.0:0              LISTENING
 [Spotify.exe]
  TCP    10.0.75.1:139          0.0.0.0:0              LISTENING
 Não é possível obter informações de propriedade
  TCP    10.0.75.1:445          10.0.75.2:59992        ESTABLISHED
 Não é possível obter informações de propriedade
  TCP    10.0.75.1:5040         0.0.0.0:0              LISTENING
  CDPSvc
 [svchost.exe]
  TCP    127.0.0.1:4380         0.0.0.0:0              LISTENING
 [SpotifyWebHelper.exe]
  TCP    127.0.0.1:4380         0.0.0.0:0              LISTENING
 [SpotifyWebHelper.exe]
  TCP    127.0.0.1:4381         0.0.0.0:0              LISTENING
 [Spotify.exe]
  TCP    127.0.0.1:5354         0.0.0.0:0              LISTENING
 [mDNSResponder.exe]
  TCP    127.0.0.1:15292        0.0.0.0:0              LISTENING
 [Adobe Desktop Service.exe]
  TCP    127.0.0.1:27060        0.0.0.0:0              LISTENING
 [Steam.exe]
  TCP    127.0.0.1:51392        0.0.0.0:0              LISTENING
 [node.exe]
  TCP    172.29.2.49:5040       0.0.0.0:0              LISTENING
  CDPSvc
 [svchost.exe]
  TCP    192.168.0.59:139       0.0.0.0:0              LISTENING
 Não é possível obter informações de propriedade
  TCP    192.168.0.59:51381     131.253.34.249:443     ESTABLISHED
 [OneDrive.exe]
  TCP    192.168.0.59:54871     169.55.74.42:443       ESTABLISHED
 [chrome.exe]
  TCP    192.168.0.59:54878     104.154.127.110:4070   ESTABLISHED
 [Spotify.exe]
  TCP    192.168.0.59:54954     52.171.217.9:443       ESTABLISHED
 [SkypeHost.exe]
  TCP    192.168.0.59:55708     65.52.108.216:443      ESTABLISHED
  WpnService
 [svchost.exe]
  TCP    192.168.0.59:55750     52.67.69.93:443        ESTABLISHED
 [chrome.exe]
  TCP    192.168.0.59:55771     52.73.129.253:443      ESTABLISHED
 [Coresync.exe]
  TCP    192.168.0.59:55802     34.197.21.83:443       ESTABLISHED
 [Adobe Desktop Service.exe]
  TCP    192.168.0.59:55869     52.203.5.220:443       ESTABLISHED
 [Coresync.exe]
  TCP    192.168.0.59:55882     151.101.92.133:443     ESTABLISHED
 [chrome.exe]
  TCP    192.168.0.59:55889     151.101.92.133:443     ESTABLISHED
 [chrome.exe]
  TCP    192.168.0.59:55896     151.101.92.133:443     ESTABLISHED
 [chrome.exe]
  TCP    192.168.0.59:55899     151.101.92.133:443     ESTABLISHED
 [chrome.exe]
  TCP    192.168.0.59:55908     151.101.92.133:443     ESTABLISHED
 [chrome.exe]
  TCP    192.168.0.59:55909     151.101.92.133:443     ESTABLISHED
 [chrome.exe]
  TCP    192.168.0.59:55917     192.30.253.113:443     CLOSE_WAIT
 [chrome.exe]
  TCP    192.168.0.59:55919     151.101.92.133:443     ESTABLISHED
 [chrome.exe]
  TCP    192.168.0.59:55922     151.101.92.133:443     ESTABLISHED
 [chrome.exe]
  TCP    192.168.0.59:55923     151.101.92.133:443     ESTABLISHED
 [chrome.exe]
  TCP    192.168.0.59:55924     151.101.92.133:443     ESTABLISHED
 [chrome.exe]
  TCP    192.168.0.59:55926     151.101.92.133:443     ESTABLISHED
 [chrome.exe]
  TCP    192.168.0.59:55928     151.101.92.133:443     ESTABLISHED
 [chrome.exe]
  TCP    192.168.0.59:55929     151.101.92.133:443     ESTABLISHED
 [chrome.exe]
  TCP    192.168.0.59:55932     192.30.253.125:443     ESTABLISHED
 [chrome.exe]
  TCP    192.168.0.59:55933     54.210.179.27:443      CLOSE_WAIT
 [chrome.exe]
  TCP    192.168.0.59:55935     192.30.253.117:443     CLOSE_WAIT
 [chrome.exe]
  TCP    192.168.0.59:55937     65.52.108.224:443      ESTABLISHED
  WpnService
 [svchost.exe]
  TCP    192.168.0.59:55940     151.101.92.133:443     ESTABLISHED
 [chrome.exe]
  TCP    192.168.0.59:55941     151.101.92.133:443     ESTABLISHED
 [chrome.exe]
  TCP    192.168.0.59:55942     151.101.92.133:443     ESTABLISHED
 [chrome.exe]
  TCP    192.168.0.59:55944     151.101.92.133:443     ESTABLISHED
 [chrome.exe]
  TCP    192.168.0.59:55945     13.78.184.186:443      TIME_WAIT
  TCP    192.168.0.59:55954     13.78.184.186:443      ESTABLISHED
  DoSvc
 [svchost.exe]
  TCP    192.168.0.59:55955     189.6.45.74:80         TIME_WAIT
  TCP    [::]:80                [::]:0                 LISTENING
 [httpd.exe]
  TCP    [::]:135               [::]:0                 LISTENING
  RpcSs
 [svchost.exe]
  TCP    [::]:443               [::]:0                 LISTENING
 [httpd.exe]
  TCP    [::]:445               [::]:0                 LISTENING
 Não é possível obter informações de propriedade
  TCP    [::]:2179              [::]:0                 LISTENING
 [vmms.exe]
  TCP    [::]:3306              [::]:0                 LISTENING
 [mysqld.exe]
  TCP    [::]:5357              [::]:0                 LISTENING
 Não é possível obter informações de propriedade
  TCP    [::]:5432              [::]:0                 LISTENING
 [postgres.exe]
  TCP    [::]:7680              [::]:0                 LISTENING
  DoSvc
 [svchost.exe]
  TCP    [::]:49664             [::]:0                 LISTENING
 Não é possível obter informações de propriedade
  TCP    [::]:49665             [::]:0                 LISTENING
  EventLog
 [svchost.exe]
  TCP    [::]:49666             [::]:0                 LISTENING
  Schedule
 [svchost.exe]
  TCP    [::]:49667             [::]:0                 LISTENING
  SessionEnv
 [svchost.exe]
  TCP    [::]:49668             [::]:0                 LISTENING
 [spoolsv.exe]
  TCP    [::]:49669             [::]:0                 LISTENING
 Não é possível obter informações de propriedade
  TCP    [::]:49714             [::]:0                 LISTENING
 [lsass.exe]
  TCP    [::1]:50050            [::]:0                 LISTENING
 [jhi_service.exe]
  TCP    [2804:14c:6580:559c:46c:7b03:f994:348a]:51219  [2800:3f0:4001:805::200d]:443  CLOSE_WAIT
 [googledrivesync.exe]
  TCP    [2804:14c:6580:559c:46c:7b03:f994:348a]:51243  [2800:3f0:4001:80a::200a]:443  CLOSE_WAIT
 [googledrivesync.exe]
  TCP    [2804:14c:6580:559c:46c:7b03:f994:348a]:51304  [2800:3f0:4001:816::200a]:443  CLOSE_WAIT
 [googledrivesync.exe]
  TCP    [2804:14c:6580:559c:46c:7b03:f994:348a]:51305  [2800:3f0:4003:c00::7d]:5222  ESTABLISHED
 [googledrivesync.exe]
  TCP    [2804:14c:6580:559c:46c:7b03:f994:348a]:51306  [2800:3f0:4001:816::200a]:443  CLOSE_WAIT
 [googledrivesync.exe]
  TCP    [2804:14c:6580:559c:46c:7b03:f994:348a]:51307  [2800:3f0:4001:816::200a]:443  CLOSE_WAIT
 [googledrivesync.exe]
  TCP    [2804:14c:6580:559c:46c:7b03:f994:348a]:51308  [2800:3f0:4001:816::200a]:443  CLOSE_WAIT
 [googledrivesync.exe]
  TCP    [2804:14c:6580:559c:46c:7b03:f994:348a]:51457  [2800:3f0:4001:816::200a]:443  CLOSE_WAIT
 [GOOGLE~1.EXE]
  TCP    [2804:14c:6580:559c:46c:7b03:f994:348a]:51458  [2800:3f0:4001:816::200a]:443  CLOSE_WAIT
 [GOOGLE~1.EXE]
  TCP    [2804:14c:6580:559c:46c:7b03:f994:348a]:55857  [2800:3f0:4003:c01::bc]:5228  ESTABLISHED
 [chrome.exe]
  TCP    [2804:14c:6580:559c:46c:7b03:f994:348a]:55918  [2800:3f0:4001:805::200a]:443  ESTABLISHED
 [chrome.exe]
  TCP    [2804:14c:6580:559c:46c:7b03:f994:348a]:55946  [2800:3f0:4001:80a::2005]:443  ESTABLISHED
 [chrome.exe]
  TCP    [2804:14c:6580:559c:46c:7b03:f994:348a]:55958  [2600:1419:1b:180::76a]:443  ESTABLISHED
 [backgroundTaskHost.exe]
  TCP    [2804:14c:6580:559c:46c:7b03:f994:348a]:62457  [2800:3f0:4001:816::200a]:443  CLOSE_WAIT
 [GOOGLE~1.EXE]
  TCP    [2804:14c:6580:559c:46c:7b03:f994:348a]:62492  [2800:3f0:4003:c01::7d]:5222  ESTABLISHED
 [GOOGLE~1.EXE]
  UDP    0.0.0.0:53             *:*                    
  SharedAccess
 [svchost.exe]
  UDP    0.0.0.0:500            *:*                    
  IKEEXT
 [svchost.exe]
  UDP    0.0.0.0:1900           *:*                    
 [Spotify.exe]
  UDP    0.0.0.0:3702           *:*                    
 [dashost.exe]
  UDP    0.0.0.0:3702           *:*                    
 [dashost.exe]
  UDP    0.0.0.0:4500           *:*                    
  IKEEXT
 [svchost.exe]
  UDP    0.0.0.0:5050           *:*                    
  CDPSvc
 [svchost.exe]
  UDP    0.0.0.0:5353           *:*                    
 [chrome.exe]
  UDP    0.0.0.0:5353           *:*                    
 [chrome.exe]
  UDP    0.0.0.0:5353           *:*                    
  Dnscache
 [svchost.exe]
  UDP    0.0.0.0:5353           *:*                    
 [chrome.exe]
  UDP    0.0.0.0:5353           *:*                    
 [chrome.exe]
  UDP    0.0.0.0:5353           *:*                    
 [chrome.exe]
  UDP    0.0.0.0:5355           *:*                    
  Dnscache
 [svchost.exe]
  UDP    0.0.0.0:27036          *:*                    
 [Steam.exe]
  UDP    0.0.0.0:49596          *:*                    
  SharedAccess
 [svchost.exe]
  UDP    0.0.0.0:49597          *:*                    
  SharedAccess
 [svchost.exe]
  UDP    0.0.0.0:49666          *:*                    
 [mDNSResponder.exe]
  UDP    0.0.0.0:49877          *:*                    
 [dashost.exe]
  UDP    0.0.0.0:50213          *:*                    
 [chrome.exe]
  UDP    0.0.0.0:54610          *:*                    
 [Spotify.exe]
  UDP    0.0.0.0:57621          *:*                    
 [Spotify.exe]
  UDP    0.0.0.0:64295          *:*                    
 [Steam.exe]
  UDP    0.0.0.0:65027          *:*                    
 [SkypeHost.exe]
  UDP    10.0.75.1:137          *:*                    
 Não é possível obter informações de propriedade
  UDP    10.0.75.1:138          *:*                    
 Não é possível obter informações de propriedade
  UDP    10.0.75.1:1900         *:*                    
  SSDPSRV
 [svchost.exe]
  UDP    10.0.75.1:5353         *:*                    
 [mDNSResponder.exe]
  UDP    10.0.75.1:49593        *:*                    
  SSDPSRV
 [svchost.exe]
  UDP    127.0.0.1:1900         *:*                    
  SSDPSRV
 [svchost.exe]
  UDP    127.0.0.1:49595        *:*                    
  SSDPSRV
 [svchost.exe]
  UDP    127.0.0.1:49668        *:*                    
  iphlpsvc
 [svchost.exe]
  UDP    172.29.2.49:67         *:*                    
  SharedAccess
 [svchost.exe]
  UDP    172.29.2.49:68         *:*                    
  SharedAccess
 [svchost.exe]
  UDP    172.29.2.49:1900       *:*                    
  SSDPSRV
 [svchost.exe]
  UDP    172.29.2.49:5353       *:*                    
 [mDNSResponder.exe]
  UDP    172.29.2.49:49592      *:*                    
  SSDPSRV
 [svchost.exe]
  UDP    192.168.0.59:137       *:*                    
 Não é possível obter informações de propriedade
  UDP    192.168.0.59:138       *:*                    
 Não é possível obter informações de propriedade
  UDP    192.168.0.59:1900      *:*                    
  SSDPSRV
 [svchost.exe]
  UDP    192.168.0.59:5353      *:*                    
 [mDNSResponder.exe]
  UDP    192.168.0.59:49594     *:*                    
  SSDPSRV
 [svchost.exe]
  UDP    [::]:500               *:*                    
  IKEEXT
 [svchost.exe]
  UDP    [::]:3702              *:*                    
 [dashost.exe]
  UDP    [::]:3702              *:*                    
 [dashost.exe]
  UDP    [::]:4500              *:*                    
  IKEEXT
 [svchost.exe]
  UDP    [::]:5353              *:*                    
 [chrome.exe]
  UDP    [::]:5353              *:*                    
  Dnscache
 [svchost.exe]
  UDP    [::]:5353              *:*                    
 [chrome.exe]
  UDP    [::]:5355              *:*                    
  Dnscache
 [svchost.exe]
  UDP    [::]:49598             *:*                    
  SharedAccess
 [svchost.exe]
  UDP    [::]:49667             *:*                    
 [mDNSResponder.exe]
  UDP    [::]:49878             *:*                    
 [dashost.exe]
  UDP    [::]:50213             *:*                    
 [chrome.exe]
  UDP    [::]:65027             *:*                    
 [SkypeHost.exe]
  UDP    [::1]:1900             *:*                    
  SSDPSRV
 [svchost.exe]
  UDP    [::1]:5353             *:*                    
 [mDNSResponder.exe]
  UDP    [::1]:49591            *:*                    
  SSDPSRV
 [svchost.exe]
  UDP    [::1]:49669            *:*                    
 [postgres.exe]
  UDP    [fe80::153:5ea:bbae:350%41]:1900  *:*                    
  SSDPSRV
 [svchost.exe]
  UDP    [fe80::153:5ea:bbae:350%41]:49589  *:*                    
  SSDPSRV
 [svchost.exe]
  UDP    [fe80::5d1c:95ab:c21b:dcaa%14]:1900  *:*                    
  SSDPSRV
 [svchost.exe]
  UDP    [fe80::5d1c:95ab:c21b:dcaa%14]:49590  *:*                    
  SSDPSRV
 [svchost.exe]
jasonbivins commented 6 years ago

Hi @renatorroliveira Windows doesn't actually support using bridge networking drivers with Docker - You can use one of these five: nat, overlay, transparent, l2bridge, and l2tunnel https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/container-networking

renatorroliveira commented 6 years ago

Oh, my bad. Thank you for the reply and related information, very useful.

renatorroliveira commented 6 years ago

The only strange thing is that in my home PC the bridge driver is the default one, not NAT like the docs say. At home I use Windows 10 Pro.

docker-robott commented 4 years ago

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