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