Skip to content

Instantly share code, notes, and snippets.

@iaon
Created May 7, 2018 08:51
Show Gist options
  • Save iaon/ecd69b9c96668bdb451b65b0435dfb02 to your computer and use it in GitHub Desktop.
Save iaon/ecd69b9c96668bdb451b65b0435dfb02 to your computer and use it in GitHub Desktop.
docker service ls --format "{{.ID}}: {{.Name}} {{.Mode}} {{.Replicas}}" | column -t | sed 's#/# from #' | awk '{if ($4!=$6) {print $0}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment