Created
August 16, 2018 13:54
-
-
Save mxm/b21acb9265f50dbbc3091f6342be85ae to your computer and use it in GitHub Desktop.
Use CTRL+C to kill a Docker container which runs a process in foreground
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/sh | |
# Using CTRL+C on a foreground Docker container is as easy as: | |
command & | |
wait |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment