Created
May 8, 2020 16:11
-
-
Save jcammmmm/e4fd53f2fca637ae3c0ea784b18724c1 to your computer and use it in GitHub Desktop.
If your docker container exits... Hang on with this:
This file contains hidden or 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
| 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