Skip to content

Instantly share code, notes, and snippets.

@ugurozgen
Created June 11, 2018 06:19
Show Gist options
  • Save ugurozgen/4b53412ca765bb8cf73e79d19351ef41 to your computer and use it in GitHub Desktop.
Save ugurozgen/4b53412ca765bb8cf73e79d19351ef41 to your computer and use it in GitHub Desktop.
docker node ips
for NODE in $(docker node ls --format '{{.Hostname}}'); do echo -e "${NODE} - $(docker node inspect --format '{{.Status.Addr}}' "${NODE}")"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment