What is the purpose of the “-i” and “-t” options for the “docker exec” command?
-i, –interactive keeps STDIN open even if not attached, which you need if you want to type any command at all. -t, –tty Allocates a pseudo-TTY, a pseudo terminal which connects a user’s “terminal” with stdin and stdout. (See container/container.go) If you do an echo, only -t is needed. But for an interactive session where … Read more