Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start the docker container under a different user

We need to have access to a shared resource in the active directory (file share) from a docker container which is running a dotnetcore api. The Api is started with (dotnet api.dll). The current user in the docker contrainer is ContainerAdministrator.

We are using Windows 2016 server

like image 662
hippie Avatar asked Apr 10 '26 21:04

hippie


1 Answers

Finally made it work. Added a powershell script that run "net use" first and the dotnet command after.

Use cmd in the docker file to start the ps script.

Thanks for the answers

like image 150
hippie Avatar answered Apr 14 '26 12:04

hippie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!