mirror of
https://gist.github.com/jgrodziski/9ed4a17709baad10dbcd4530b60dfcbb
synced 2025-12-21 13:23:11 +01:00
This commit is contained in:
committed by
GitHub
parent
c9d73ad86b
commit
61889c87d1
@@ -40,10 +40,11 @@ function dip-fn {
|
|||||||
|
|
||||||
for DOC in `dnames-fn`
|
for DOC in `dnames-fn`
|
||||||
do
|
do
|
||||||
IP=`docker inspect $DOC | grep -m3 IPAddress | cut -d '"' -f 4 | tr -d "\n"`
|
IP=`docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}} {{end}}' "$DOC"`
|
||||||
OUT+=$DOC'\t'$IP'\n'
|
OUT+=$DOC'\t'$IP'\n'
|
||||||
done
|
done
|
||||||
echo $OUT|column -t
|
echo -e $OUT | column -t
|
||||||
|
unset OUT
|
||||||
}
|
}
|
||||||
|
|
||||||
function dex-fn {
|
function dex-fn {
|
||||||
|
|||||||
Reference in New Issue
Block a user