mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-12-16 23:20:13 +01:00
fix to get single IPAddress
This commit is contained in:
parent
f7a679fd34
commit
8e4a7df236
1 changed files with 1 additions and 1 deletions
|
|
@ -606,7 +606,7 @@ docker commit -run='{"Cmd":["postgres", "-too -many -opts"]}' $(dl) postgres
|
||||||
### Get IP address
|
### Get IP address
|
||||||
|
|
||||||
```
|
```
|
||||||
docker inspect $(dl) | grep IPAddress | cut -d '"' -f 4
|
docker inspect $(dl) | grep -wm1 IPAddress | cut -d '"' -f 4
|
||||||
```
|
```
|
||||||
|
|
||||||
or install [jq](https://stedolan.github.io/jq/):
|
or install [jq](https://stedolan.github.io/jq/):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue