Docker Community Forums

Share and learn in the Docker community.

Authenticating from Swarm Windows Container to Domain VMs

I have a single Windows node running a .NET App container and an MSSQL Container running in a swarm. I have the same two containers running on a second Windows node that uses gMSA for authentication against AD . The gMSA non-swarm configuration can successfully run PowerShell scripts on any server in the domain, generally due to using gMSA. In the real-life AD, gMSA is not being used.

I would like to use the Two containers in the Swarm and Authenticate against the AD in order to run PowerShell against any server in the domain without gMSA. Currently, the container uses a local user. ContainerID\LocalUser. So, the result of the script is a fail due to authentication on the domain joined servers.

Is it possible to authenticate from the container to the AD without gMSA.

Server:
Engine:
Version: 18.03.1-ee-3

SWARM
Windows PowerShell transcript start
Start time: 20190322144718
Username: 6E4D723D3D4B\TestUser
RunAs User: 6E4D723D3D4B\TestUser

CONTAINER
Windows PowerShell transcript start
Start time: 20190322145734
Username: IIS APPPOOL.NET v4.5
RunAs User: IIS APPPOOL.NET v4.5