Skip to content

Instantly share code, notes, and snippets.

@cernoel
Created November 6, 2022 09:50
Show Gist options
  • Save cernoel/9829850c0d098adf5cbbafcc70d949cc to your computer and use it in GitHub Desktop.
Save cernoel/9829850c0d098adf5cbbafcc70d949cc to your computer and use it in GitHub Desktop.
Simple thingy which outputs specific docker inspect information for all nodes (swarm mode)
docker node ls --format "{{.ID}}" | xargs -I %nodeid -- docker node inspect %nodeid --format "{{ .ID }} {{ .Description.Hostname }} {{ .Status.Addr }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment