Add get port mapping

This commit is contained in:
playerwtf 2014-08-27 21:56:30 +02:00
parent 3d279d2c17
commit 85aa12cc40

View file

@ -338,6 +338,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
```