I have a windows image based on mcr.microsoft.com/windows:1809.
In my Dockerfile, I created a new user via
net user /add myuser mypassword
Now I would like to enter the container, e.g. via docker run -it and execute commands via the myuser (instead of the standard user ContainerAdministrator).
I tried both runas and psexec but both commands did not work as expected or gave various errors, among others these and these.
How can I run a command inside a Windows docker container as a different user other than ContainerAdministrator?