Can't get IP of Windows container - NetworkSettings missing

I have an image up and running, but can’t find its IP. Apparently the NetworkSettings section is missing:

PS C:\WINDOWS\system32> docker inspect campuslink-api
[
    {
        "Id": "sha256:25fc05b19e7aa1bb55e103918b5fe425b4c0e3975266ab2afaaef0df9c574f18",
        "RepoTags": [
            "campuslink-api:latest"
        ],
        "RepoDigests": [],
        "Parent": "sha256:2b4092bdaf322eb131782258e359fd1405dc2699815178ddde732dee1a43489f",
        "Comment": "",
        "Created": "2017-02-22T21:43:02.9874452Z",
        "Container": "5d48bf408a8ede05bd422a7db52efb57b675d3790a0cdf406c063e13369b176a",
        "ContainerConfig": {
            "Hostname": "a6e35d1c6061",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "80/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": null,
            "Cmd": [
                "powershell",
                "#(nop) ",
                "ENTRYPOINT [\"C:\\\\ServiceMonitor.exe\" \"w3svc\"]"
            ],
            "ArgsEscaped": true,
            "Image": "sha256:2b4092bdaf322eb131782258e359fd1405dc2699815178ddde732dee1a43489f",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": [
                "C:\\ServiceMonitor.exe",
                "w3svc"
            ],
            "OnBuild": [],
            "Labels": {},
            "Shell": [
                "powershell"
            ]
        },
        "DockerVersion": "1.13.1",
        "Author": "mrichman@campusmgmt.com",
        "Config": {
            "Hostname": "a6e35d1c6061",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "80/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": null,
            "Cmd": null,
            "ArgsEscaped": true,
            "Image": "sha256:2b4092bdaf322eb131782258e359fd1405dc2699815178ddde732dee1a43489f",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": [
                "C:\\ServiceMonitor.exe",
                "w3svc"
            ],
            "OnBuild": [],
            "Labels": {},
            "Shell": [
                "powershell"
            ]
        },
        "Architecture": "amd64",
        "Os": "windows",
        "OsVersion": "10.0.14393.693",
        "Size": 11054766840,
        "VirtualSize": 11054766840,
        "GraphDriver": {
            "Name": "windowsfilter",
            "Data": {
                "dir": "C:\\ProgramData\\Docker\\windowsfilter\\1c214d7a8935d378dc30f84d3805f57c47e1bd2769b224c898a467e6be89f625"
            }
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:f358be10862ccbc329638b9e10b3d497dd7cd28b0e8c7931b4a545c88d7f7cd6",
                "sha256:c28d44287ce521eac86e0296c7677f5d8ca1e86d1e45e7618ec900da08c95df3",
                "sha256:0451551dda21c0ce25deadff219033d9832e3797e034fbce061fe417f6d16d96",
                "sha256:1f2f3eb32edc95f309f919acd84297ee271690f086409b1dfdd47e232285f059",
                "sha256:5b4aace84103e062bbb8ddb12690e05ad60d636d4515532670d9e9dcb525ef5a",
                "sha256:e9011d9f8bfca054f4e08615755608ff4f5474af1e8ed8556da8f54a44e8b82e",
                "sha256:8d96afcd71a8cf5c8af1895642acc6a853a52fc8070ff4a93891534b916815c5",
                "sha256:ed5e58693fd4ccfb0f2a2c68233ab2d28bffec316f47545de2fd40a77de6a346",
                "sha256:cff75d397e0ee641b239dc2a8892c99fdb161363e6e731b92e95ff66da42e761",
                "sha256:d1ae61cc82b507afc6b8f70cb748a4c82abf31917e49a3b5792253b08acbad33",
                "sha256:9fe0ff491290a427fa8d2e56d1be95a8ca6ae53bf6ed72f1cc1f9da4d977c3f3",
                "sha256:908bcd80d2d319bb4b4b9a8c7d2b69bacc7b9ad3ced5c09d39cdbe899a9f9f3f",
                "sha256:88f3154a8d74d741d5b6e97d7adbfac15eae7865da992ae024bb518ef60618b7",
                "sha256:ca307f1ca34c4bf8e1ed17fa11c20f9429501810a70c11caf456502d3dc38d44"
            ]
        }
    }
]

Here’s my Dockerfile:

FROM microsoft/iis

SHELL ["powershell"]

RUN Install-WindowsFeature NET-Framework-45-ASPNET ; \
    Install-WindowsFeature Web-Asp-Net45

RUN del C:\inetpub\wwwroot\iisstart.htm

RUN Remove-WebSite -Name 'Default Web Site'

COPY campuslink-api c:/inetpub/wwwroot/campuslink-api

RUN New-Website -Name 'campuslink-api' \
                -Port 80 \  
                -PhysicalPath 'c:\inetpub\wwwroot\campuslink-api' \
                -ApplicationPool '.NET v4.5'

EXPOSE 80

ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"]

and my docker info:

PS C:\WINDOWS\system32> docker info
Containers: 5
 Running: 1
 Paused: 0
 Stopped: 4
Images: 12
Server Version: 1.13.1
Storage Driver: windowsfilter
 Windows:
Logging Driver: json-file
Plugins:
 Volume: local
 Network: l2bridge l2tunnel nat null overlay transparent
Swarm: inactive
Default Isolation: hyperv
Kernel Version: 10.0 14393 (14393.693.amd64fre.rs1_release.161220-1747)
Operating System: Windows 10 Enterprise
OSType: windows
Architecture: x86_64
CPUs: 4
Total Memory: 11.89 GiB
Name: LPT1467
ID: SA2G:MAA5:S76Z:2V5C:GDV7:WEJP:ND57:H3UM:O3GQ:53PO:H6PO:7WXP
Docker Root Dir: C:\ProgramData\Docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: -1
 Goroutines: 44
 System Time: 2017-02-23T09:40:15.3215673-05:00
 EventsListeners: 2
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

I am having an identical problem running a windows container based on windows server and trying to host a Teamcity build server. The NetworkSettings is from the inspect output.

[
{
“Id”: “sha256:a8b974e2ed0f86f59d89cc202747c5d977deaa62d3abb8bde3a72dfcade7c46e”,
“RepoTags”: [
“altera-windows-server:latest”
],
“RepoDigests”: [],
“Parent”: “sha256:2cb1b94e37a01b55cbdaa4e1dcf820f6cee25ed46a0272601ba36a069fb7efb4”,
“Comment”: “”,
“Created”: “2017-04-05T21:18:14.973195Z”,
“Container”: “df817920eb33fe7e9685512c547e241128dbf491475944377c5f9db80b334846”,
“ContainerConfig”: {
“Hostname”: “c2c9179b47fe”,
“Domainname”: “”,
“User”: “”,
“AttachStdin”: false,
“AttachStdout”: false,
“AttachStderr”: false,
“ExposedPorts”: {
“8111/tcp”: {}
},
“Tty”: false,
“OpenStdin”: false,
“StdinOnce”: false,
“Env”: [
“JAVA_HOME=C:\ojdkbuild”,
“JAVA_VERSION=8u121”,
“JAVA_OJDKBUILD_VERSION=1.8.0.121-2”,
“JAVA_OJDKBUILD_ZIP=java-1.8.0-openjdk-1.8.0.121-2.b13.ojdkbuild.windows.x86_64.zip”,
“JAVA_OJDKBUILD_SHA256=99a842b88b42c049ba4ffc3b13a9b98fbdad818703750e319ae59aa717e95ad3”,
“COMPOSE_CONVERT_WINDOWS_PATHS=1”
],
“Cmd”: [
“powershell”,
"-Command",
"$ErrorActionPreference = ‘Stop’; $ProgressPreference = ‘SilentlyContinue’;",
"#(nop) “,
“CMD [“powershell” “/run_server.ps1”]”
],
“ArgsEscaped”: true,
“Image”: “sha256:2cb1b94e37a01b55cbdaa4e1dcf820f6cee25ed46a0272601ba36a069fb7efb4”,
“Volumes”: null,
“WorkingDir”: “”,
“Entrypoint”: null,
“OnBuild”: [],
“Labels”: {
“dockerImage.teamcity.buildNumber”: “latest”,
“dockerImage.teamcity.version”: “latest”
},
“Shell”: [
“powershell”,
”-Command",
"$ErrorActionPreference = ‘Stop’; $ProgressPreference = ‘SilentlyContinue’;"
]
},
“DockerVersion”: “17.03.1-ce”,
“Author”: “Nicki Vankoughnett nicki@deck12.com”,
“Config”: {
“Hostname”: “c2c9179b47fe”,
“Domainname”: “”,
“User”: “”,
“AttachStdin”: false,
“AttachStdout”: false,
“AttachStderr”: false,
“ExposedPorts”: {
“8111/tcp”: {}
},
“Tty”: false,
“OpenStdin”: false,
“StdinOnce”: false,
“Env”: [
“JAVA_HOME=C:\ojdkbuild”,
“JAVA_VERSION=8u121”,
“JAVA_OJDKBUILD_VERSION=1.8.0.121-2”,
“JAVA_OJDKBUILD_ZIP=java-1.8.0-openjdk-1.8.0.121-2.b13.ojdkbuild.windows.x86_64.zip”,
“JAVA_OJDKBUILD_SHA256=99a842b88b42c049ba4ffc3b13a9b98fbdad818703750e319ae59aa717e95ad3”,
“COMPOSE_CONVERT_WINDOWS_PATHS=1”
],
“Cmd”: [
“powershell”,
"/run_server.ps1"
],
“ArgsEscaped”: true,
“Image”: “sha256:2cb1b94e37a01b55cbdaa4e1dcf820f6cee25ed46a0272601ba36a069fb7efb4”,
“Volumes”: null,
“WorkingDir”: “”,
“Entrypoint”: null,
“OnBuild”: [],
“Labels”: {
“dockerImage.teamcity.buildNumber”: “latest”,
“dockerImage.teamcity.version”: “latest”
},
“Shell”: [
“powershell”,
"-Command",
"$ErrorActionPreference = ‘Stop’; $ProgressPreference = ‘SilentlyContinue’;"
]
},
“Architecture”: “amd64”,
“Os”: “windows”,
“OsVersion”: “10.0.14393.953”,
“Size”: 11403476478,
“VirtualSize”: 11403476478,
“GraphDriver”: {
“Name”: “windowsfilter”,
“Data”: {
“dir”: “C:\ProgramData\Docker\windowsfilter\499d80bed0810282617e9ceb5fa5d40cf841efc5773aa38e4afc63901a6fafce”
}
},
“RootFS”: {
“Type”: “layers”,
“Layers”: [
“sha256:f358be10862ccbc329638b9e10b3d497dd7cd28b0e8c7931b4a545c88d7f7cd6”,
“sha256:87b233cbdc5a1223485207abb986ff3cbedeeb120e235b1db61813cdddf45661”,
“sha256:252f0bc1114db346854bf732986cc37d4788ff2aa26f2147d327bebbc51d13ff”,
“sha256:7e8b64da29a3a51fb0cd11270e38b0cc807f06d9f17de9cbe3d6a583073f9080”,
“sha256:629ba03a20a7d7146ff38dc26d3686acb3b4cd31753791c67181e292ca323e62”,
“sha256:d8c7dddf006f73e413ccd98b2dd0d467a51bf322be32e4721c4f06ed81eb39ec”,
“sha256:6ef8149b13b14827d857f7125595eb13a9fc5b6f59f5e03357c1edd7058c04c9”,
“sha256:cd21a14c5f5506bd71785cb7a28340eb29e6d626aa27f5335402b57a545ed0eb”,
“sha256:064eda98f681b402eb14bc4e04aa14b29abe927b47b3a41a188d95a702eaeb21”,
“sha256:7299b95468265a0d51010d088bd941fbdd37caf24280dba1b066f28b0ace4507”,
“sha256:39a184a382ca58a4fd5c66eaf7ea75da5c5fa7a5542c85b5af7e716c04b05eca”,
“sha256:75e447809d762c5f32fe3e44e75e73904af4f814fdf66758c0703836ffad2115”,
“sha256:66eac77b6041733fdb1d5ec40edc710c91955d417632841c9d923d2f928c956c”,
“sha256:6bcf3351005a0d2749664ae0059eeb5613bfdcbf908d2ba20f55cb96bb06562c”,
“sha256:d476c220178a83af5e1f0c636ffc3296e64806506fced69ba8f0bc0984d1410f”,
“sha256:83d196c55dcb81731c42c8738f3bc0cf5d0b9ec05d82706ff3b5d1960897abc2”,
“sha256:4e87f33292867c4a119aa33c101c06762ad4fcdbf9951594971916e2b8f4b624”,
“sha256:6c1ccc27699afa0eede80660c53c9ed9909909f002c94593a425c66d1b9d60f2”,
“sha256:575d309755ff84327c20a88a40898786d59886616e1b50aa070b5d4d9838a0bb”
]
}
}
]

my docker file:

FROM openjdk:8-windowsservercore

SHELL [“powershell”, “-Command”, “$ErrorActionPreference = ‘Stop’; $ProgressPreference = ‘SilentlyContinue’;”]

LABEL dockerImage.teamcity.version=“latest” dockerImage.teamcity.buildNumber=“latest”

ENV COMPOSE_CONVERT_WINDOWS_PATHS=1

RUN mkdir \teamcity-docker-server

COPY teamcity-docker-server /teamcity-docker-server
COPY run_server.ps1 /run_server.ps1

EXPOSE 8111

output of docker info

Containers: 1
Running: 1
Paused: 0
Stopped: 0
Images: 58
Server Version: 17.03.1-ce
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: l2bridge l2tunnel nat null overlay transparent
Swarm: inactive
Default Isolation: hyperv
Kernel Version: 10.0 14393 (14393.953.amd64fre.rs1_release_inmarket.170303-1614)
Operating System: Windows 10 Pro
OSType: windows
Architecture: x86_64
CPUs: 8
Total Memory: 15.93 GiB
Name: deck12-v4
ID: YHDE:EW6N:RRXC:WSYP:IBCN:TBGQ:TT6R:KGNZ:ZD4Y:OM5Y:HR4T:IJ7O
Docker Root Dir: C:\ProgramData\Docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: -1
Goroutines: 34
System Time: 2017-04-11T16:39:43.7184532-07:00
EventsListeners: 2
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false