Skip to content

Instantly share code, notes, and snippets.

@jcammmmm
jcammmmm / gist:e4fd53f2fca637ae3c0ea784b18724c1
Created May 8, 2020 16:11
If your docker container exits... Hang on with this:
docker run -dit <image_name>
where -dit is a shortcut for:
-d : detached mode (run background and avoid logging in your terminal)
-t : request a tty to the dockerd (https://www.youtube.com/watch?v=2XLZ4Z8LpEE&t=449s)
-i : hold that tty in your current terminal.
I hope that this can save your time...