Created
September 20, 2018 15:29
-
-
Save mherrera05/287ae580a9f3fcb5887cd3c1a995a8ee to your computer and use it in GitHub Desktop.
Script to get node networking ip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Get IP from nodes. @jbovet | |
docker node ls --format "{{.Hostname}}" | while read line ; do docker node inspect $line --format '{{ .Status.Addr }} - {{.Description.Hostname}}'; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment