1 | docker network inspect [Network名] | jq -r '.[0].Containers[] | [.Name, "-->", .IPv4Address] | @csv' | column -t -s "," | xargs -ICONTAINER echo "- CONTAINER" |
1 | - xxxxxxxxxxxxxxxxxxxxx_1_317aff4ad3c0 --> 172.18.0.3/24 |
1 | docker network inspect [Network名] | jq -r '.[0].Containers[] | [.Name, "-->", .IPv4Address] | @csv' | column -t -s "," | xargs -ICONTAINER echo "- CONTAINER" |
1 | - xxxxxxxxxxxxxxxxxxxxx_1_317aff4ad3c0 --> 172.18.0.3/24 |