Created
January 24, 2015 12:41
-
-
Save kgorskowski/101512270c5d6e17012f to your computer and use it in GitHub Desktop.
remove dockercontainer per name in CoreOs Unit within ExecStart or ExecPreStart:
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
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