mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-12-16 15:10:12 +01:00
Merge pull request #139 from zivvers/master
fix to get single IPAddress
This commit is contained in:
commit
9033bc9a37
1 changed files with 1 additions and 1 deletions
|
|
@ -605,7 +605,7 @@ docker commit -run='{"Cmd":["postgres", "-too -many -opts"]}' $(dl) postgres
|
|||
### 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/):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue