Getting Docker IPs is hard
This commit is contained in:
parent
0a83cde190
commit
45380d669f
1 changed files with 4 additions and 0 deletions
|
|
@ -18,3 +18,7 @@ screenshot() {
|
|||
import "$f"
|
||||
echo "$f"
|
||||
}
|
||||
|
||||
docker-ip() {
|
||||
docker inspect "$1" | jq -r '.[0].NetworkSettings.Networks.bridge.IPAddress'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue