-
-
Save hholst80/54886bcf30687041b7c1af0f097df020 to your computer and use it in GitHub Desktop.
Docker on Steriods
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
#!/bin/bash | |
# trap "{ echo killing $$ > $HOME/test.log; }" SIGHUP | |
CID=$(docker run -tid alpine:latest /bin/sh -c "/bin/sleep 3600") | |
trap "{ docker stop $CID && docker rm $CID; }" SIGHUP | |
docker attach $CID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment