Can I use -i without -t?

082

Yes, you can use the -i flag without the -t flag in the docker run command. Using -i alone will keep the standard input (STDIN) open for the container, allowing you to send input to it. However, without the -t flag, you won't have a terminal interface, which means you won't get features like line editing or command history.

This can be useful for certain applications that require input but do not need a terminal interface. However, for interactive shell sessions, it's common to use both -i and -t together (-it).

0 Comments

no data
Be the first to share your comment!