mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-09-22 05:40:50 +02:00
commit
b64a9033dc
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue