docker container inspect does not return ip
Closed this issue · 2 comments
Please provide the following information so we can assess the issue you're having
Which lab is it that you're having issues with?
https://github.com/docker/labs/blob/master/windows/windows-containers/MultiContainerApp.md
Description
The tutorial gives me the impression that the container will have an ip.
Steps to reproduce the issue, if relevant:
1.Got up to docker-compose up -d
Describe the results you received:
docker container inspect -f "{{.NetworkSettings.Networks.nap.IPAddress}} dotnet-album-viewer_app_1
< no value > (without spaces-md didnt show without spaces)
Describe the results you expected:
expected to see an ip
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker version:
PS C:\Repo\dotnet-album-viewer> docker version
Client:
Version: 18.06.1-ce
API version: 1.38
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:21:34 2018
OS/Arch: windows/amd64
Experimental: false
Server:
Engine:
Version: 18.06.1-ce
API version: 1.38 (minimum version 1.24)
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:36:40 2018
OS/Arch: windows/amd64
Experimental: false
Output of docker info:
PS C:\Repo\dotnet-album-viewer> docker info
Containers: 4
Running: 2
Paused: 0
Stopped: 2
Images: 18
Server Version: 18.06.1-ce
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: ics l2bridge l2tunnel nat null overlay transparent
Log: awslogs etwlogs fluentd gelf json-file logentries splunk syslog
Swarm: inactive
Default Isolation: hyperv
Kernel Version: 10.0 17755 (17755.1.amd64fre.rs5_release.180904-1423)
Operating System: Windows 10 Pro Version 1809 (OS Build 17755.1)
OSType: windows
Architecture: x86_64
CPUs: 4
Total Memory: 3.927GiB
Name: name
ID: SY32:2FQV:YH4T:VPZP:MT33:UE7U:FTVI:TS6H:5JEG:DZMH:IW4W:MJA7
Docker Root Dir: C:\ProgramData\Docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: -1
Goroutines: 43
System Time: 2018-09-15T00:57:40.9827342-04:00
EventsListeners: 1
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Additional environment details (AWS, Docker for Mac, Docker for Windows, VirtualBox, physical, etc.):
Docker for windows
Hello,
Could you provide the full output of docker inspect dotnet-album-viewer_app_1 ?
Also note that the command you wrote is different than the command in the following url. Is this a typo in the issue only or you are typing the wrong command ?
you wrote Networks.nap and it should be Networks.nat. Could you please fix it and try the command again in case you are using the same command on your machine ?
sorry @mostafahussein, you are right. it worked when i corrected it to nat