Skip to content

Instantly share code, notes, and snippets.

View GierSmith's full-sized avatar
🎯
Focusing

GierSmith

🎯
Focusing
View GitHub Profile
@hartsock
hartsock / node-ips.sh
Created February 25, 2019 16:59
Docker Swarm - List all Node IP addresses
for NODE in $(docker node ls --format '{{.Hostname}}'); do
echo -e "${NODE} - $(docker node inspect --format '{{.Status.Addr}}' "${NODE}")";
done