Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows containers 2016 run powershell as a domain user

I want to be able to either run a Windows Container as a domain user

Example (no idea on how to run as a different user)

docker run -it microsoft/nanoserver powershell

Or alternatively being able to run powershell script in the container as a domain user. I would have to pass in -e to docker run .. but that is ok.

The reason for this is to run something like (but the application uses domain resources like SQL and file shares)

dotnet app.dll
like image 878
Paul Kling Avatar asked Oct 30 '22 17:10

Paul Kling


1 Answers

the answer to your question eventually found it's way to the container docs and is brand new. please refer to this link until it will be published in the MSDN container site.

https://github.com/Microsoft/Virtualization-Documentation/blob/live/virtualization/windowscontainers/manage-containers/manage-serviceaccounts.md

----edit:---
and live link has moved again:
https://learn.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/manage-serviceaccounts

like image 87
Falco Alexander Avatar answered Nov 15 '22 07:11

Falco Alexander