Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jcammmmm/e4fd53f2fca637ae3c0ea784b18724c1 to your computer and use it in GitHub Desktop.

Select an option

Save jcammmmm/e4fd53f2fca637ae3c0ea784b18724c1 to your computer and use it in GitHub Desktop.
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...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment