Merge pull request #4 from playerwtf/get-port

Add get port mapping
This commit is contained in:
Will Sargent 2014-09-15 17:52:06 -07:00
commit b64a9033dc

View file

@ -340,6 +340,12 @@ or (this is unverified)
docker inspect -f '{{ .NetworkSettings.IPAddress }}' <container_name>
```
### Get port mapping
```
docker inspect -f '{{range $p, $conf := .NetworkSettings.Ports}} {{$p}} -> {{(index $conf 0).HostPort}} {{end}}' <containername>
```
### Get Environment Settings
```