mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-09-22 05:40:50 +02:00
parent
486ee37f5e
commit
ea8968f2f8
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
|
||||
```
|
||||
|
||||
或者
|
||||
或者安装 [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'
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue