Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] Port binding is not visible with 'netstat' but works correctly. #30300

Open
mmktomato opened this issue Jan 20, 2017 · 4 comments
Open

Comments

@mmktomato
Copy link

What I did

On Windows Server 2016,

  1. powershell -Command "Install-WindowsFeature -Name Containers"
  2. Download Docker 1.13.0 from 'https://github.com/docker/docker/releases' and do dockerd.exe --register-service
  3. docker pull microsoft/aspnet
  4. docker run -d -p 80:80 --name aspnet microsoft/aspnet
  5. docker exec -it aspnet cmd
  6. echo ^<% Response.Write(DateTime.Now.ToString()) %^> > c:\inetpub\wwwroot\test.aspx

Problem

I get correct response when I do curl http://<container host ip>/test.aspx from other machine (Mac).
But I can't get any result when I do netstat -ano | findstr :80.

Docker version

docker version shows as follows:

Client:
Version: 1.13.0
API version: 1.25
Go version: go1.7.3
Git commit: 49bf474
Built: Wed Jan 18 16:20:26 2017
OS/Arch: windows/amd64

Server:
Version: 1.13.0
API version: 1.25 (minimum version 1.24)
Go version: go1.7.3
Git commit: 49bf474
Built: Wed Jan 18 16:20:26 2017
OS/Arch: windows/amd64
Experimental: false

Docker info

docker info shows as follows:

Containers: 2
Running: 1
Paused: 0
Stopped: 1
Images: 2
Server Version: 1.13.0
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: l2bridge l2tunnel nat null overlay transparent
Swarm: inactive
Default Isolation: process
Kernel Version: 10.0 14393 (14393.693.amd64fre.rs1_release.161220-1747)
Operating System: Windows Server 2016 Standard
OSType: windows
Architecture: x86_64
CPUs: 1
Total Memory: 4 GiB
Name: WIN-CVQUKQIJORS
ID: ZIQJ:I4AA:6463:U3GV:JSXL:4YRQ:PDBT:PJ7B:FT5W:DFZK:ZMUV:ULV4
Docker Root Dir: C:\ProgramData\docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false

@friism
Copy link
Contributor

friism commented Jan 20, 2017

@mmktomato weirdly, this works correctly in my Windows 10 insider build but I can reproduce on a WS2016 instance.

It's probably a Windows problem (or netstat problem) more than a Docker one. Pinging @msabansal

@msabansal
Copy link
Contributor

@mmktomato @friism I don't see why this should fail. I will investigate and get back.

@friism
Copy link
Contributor

friism commented Jan 20, 2017

@msabansal it's not failing for me, the port is just not showing up in netstat

@mmktomato
Copy link
Author

@msabansal It does not fail as @friism says.
@friism I can reproduce on my Windows 10 (build 14393).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants