Skip to content

Instantly share code, notes, and snippets.

@mxm
Created August 16, 2018 13:54
Show Gist options
  • Save mxm/b21acb9265f50dbbc3091f6342be85ae to your computer and use it in GitHub Desktop.
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
#!/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