Skip to content

Instantly share code, notes, and snippets.

@mherrera05
Created September 20, 2018 15:29
Show Gist options
  • Save mherrera05/287ae580a9f3fcb5887cd3c1a995a8ee to your computer and use it in GitHub Desktop.
Save mherrera05/287ae580a9f3fcb5887cd3c1a995a8ee to your computer and use it in GitHub Desktop.
Script to get node networking ip
#!/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