Created
November 6, 2022 09:50
-
-
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)
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
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