mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-12-16 23:20:13 +01:00
Update JQ installation
This commit is contained in:
parent
e3c49efe20
commit
0713c5ca97
1 changed files with 1 additions and 5 deletions
|
|
@ -443,13 +443,9 @@ docker commit -run='{"Cmd":["postgres", "-too -many -opts"]}' `dl` postgres
|
||||||
docker inspect `dl` | grep IPAddress | cut -d '"' -f 4
|
docker inspect `dl` | grep IPAddress | cut -d '"' -f 4
|
||||||
```
|
```
|
||||||
|
|
||||||
or
|
or install [jq](https://stedolan.github.io/jq/):
|
||||||
|
|
||||||
```
|
```
|
||||||
wget http://stedolan.github.io/jq/download/source/jq-1.3.tar.gz
|
|
||||||
tar xzvf jq-1.3.tar.gz
|
|
||||||
cd jq-1.3
|
|
||||||
./configure && make && sudo make install
|
|
||||||
docker inspect `dl` | jq -r '.[0].NetworkSettings.IPAddress'
|
docker inspect `dl` | jq -r '.[0].NetworkSettings.IPAddress'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue