Docker Community Forums

Share and learn in the Docker community.

Docker desktop cant handle user input

Hello docker community.
i’ve imaged an c# console app and made an image of it.
however when i contain it and try to run the container - it displays error and immidetly stop run, because the docker desktop container apperntly cant accept a console app with user input.

how can i run the container and being able to enter input?

Unable to create Hyper-V VM: The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
at Set-IPAddress, : line 290
at Set-SwitchIPAddress, : line 320
at New-MobyLinuxSwitch, : line 260
at New-MobyLinux, : line 176
at , : line 800

at Docker.Core.Pipe.NamedPipeClient.d__5.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Docker.Core.Pipe.NamedPipeClient.Send(String action, Object parameters)
at Docker.Actions.DoStart(SynchronizationContext syncCtx, Boolean showWelcomeWindow, Boolean executeAfterStartCleanup)
at Docker.Actions.<>c__DisplayClass24_0.b__0()
at Docker.ApiServices.TaskQueuing.TaskQueue.<>c__DisplayClass17_0.<.ctor>b__1()

A simple example is:

docker container run --rm -it debian bash

This starts a Debian container and then opens a console in bash. Maybe you should tell us in more detail what you are trying to do.

Yes, a bit more information is required. Are you running your C# app in a windows or linux container?
What sort of input are you trying to do?
Are you running it interactive or detached?