Skip to content

Instantly share code, notes, and snippets.

@kgorskowski
Created January 24, 2015 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kgorskowski/101512270c5d6e17012f to your computer and use it in GitHub Desktop.
Save kgorskowski/101512270c5d6e17012f to your computer and use it in GitHub Desktop.
remove dockercontainer per name in CoreOs Unit within ExecStart or ExecPreStart:
ExecStart=/usr/bin/bash -c '/usr/bin/docker kill $(/usr/bin/docker ps -aq —filter="name=containername") || true'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment