dotnet / dotnet-docker-nightly

This repository has moved to the nightly branch of dotnet/dotnet-docker.
https://github.com/dotnet/dotnet-docker/tree/nightly
MIT License
35 stars 30 forks source link

Run as ContainerAdministrator in Nano Server Containers #504

Closed ravimeda closed 6 years ago

ravimeda commented 6 years ago

In a Nano Server 1709 container the default user i.e. ContainerUser will not have access to a volume. Only the ContainerAdministrator will have access. Hence these changes execute docker run command with user as ContainerAdministrator in case of Nano Server 1709.

As part of this change, dotnet.exe path is included to PATH as a system (as opposed to local) environment variable. Setting such variable require admin access.

ravimeda commented 6 years ago

Closing this PR, and will send to separate PRs covering the test and Dockerfile changes respectively.

ravimeda commented 6 years ago

Dockerfile changes PR https://github.com/dotnet/dotnet-docker-nightly/pull/505

ravimeda commented 6 years ago

Unit test changes PR https://github.com/dotnet/dotnet-docker-nightly/pull/506