mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-12-18 08:00:14 +01: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>
|
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
|
### Get Environment Settings
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue