Created
June 28, 2015 00:53
-
-
Save pawl/722cb52669f1643f6a78 to your computer and use it in GitHub Desktop.
Automatically remove docker containers for long-running jobs
This file contains hidden or 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
| PID=$(docker run -d "$@") | |
| docker wait $PID | |
| docker rm $PID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment