Windows containers 2016 run powershell as a domain user

半腔热情 提交于 2019-12-21 17:22:30

问题


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

回答1:


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://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/manage-serviceaccounts



来源:https://stackoverflow.com/questions/40294922/windows-containers-2016-run-powershell-as-a-domain-user

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!