docs(zh-ch): Update JQ installation

0713c5ca97
This commit is contained in:
geminiyellow 2016-03-18 11:54:27 +09:00
parent 486ee37f5e
commit ea8968f2f8

View file

@ -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
``` ```
或者 或者安装 [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'
``` ```