Skip to content

Instantly share code, notes, and snippets.

@letsjustfixit
Created February 9, 2020 21:23
Show Gist options
  • Save letsjustfixit/988c89480eaa328bdf728793e4fd5cc0 to your computer and use it in GitHub Desktop.
Save letsjustfixit/988c89480eaa328bdf728793e4fd5cc0 to your computer and use it in GitHub Desktop.
Force purge removed consul containers one liner
consul members | grep left | cut -d ' ' -f 1 | xargs -I{} echo "consul force-leave -prune {}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment