How to start docker with flags -it using CliWrap? #160
Unanswered
miroljub1995
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Wrap it in an actual TTY: await using Stream stdOut = Console.OpenStandardOutput();
await using Stream stdErr = Console.OpenStandardError();
await (Cli.Wrap("cmd") | (stdOut, stdErr))
.WithArguments(new[] {"/c", "docker run -it alpine cat"})
.ExecuteAsync(); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I want to start
docker run -it alpine cat
it gives me:the input device is not a TTY
. I'm running the following code usingdotnet run
in wsl:Any idea how to start it?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions