Closed kdrblkbs closed 6 years ago
@kdrblkbs, what are ACLs on the folders you are volume mapping into the container? Do machine users have access? Have you tried running with -u ContainerAdministrator
?
@PatrickLang - FYI - A question that should be answered by https://github.com/MicrosoftDocs/Virtualization-Documentation/issues/673.
Hello,
@MichaelSimons providing -u ContainerAdministrator
did not help. However i was suspecting that it must be somehow related to ACLs, which is why i tried a bunch of stuff within the container without any success. But finally i ran docker from an administrator shell and then it worked. Before that i was running docker "normally" from a powershell with my usual user account (which is also a local admin on the machine). Is this behavior correct? The ACLs for the directory the test project is in are as follows:
FileSystemRights : FullControl
AccessControlType : Allow
IdentityReference : NT-AUTHORITY\SYSTEM
IsInherited : True
InheritanceFlags : ContainerInherit, ObjectInherit
PropagationFlags : None
FileSystemRights : FullControl
AccessControlType : Allow
IdentityReference : Default\Administrators
IsInherited : True
InheritanceFlags : ContainerInherit, ObjectInherit
PropagationFlags : None
FileSystemRights : FullControl
AccessControlType : Allow
IdentityReference : MyUserAccount
IsInherited : True
InheritanceFlags : ContainerInherit, ObjectInherit
PropagationFlags : None
Regards
@kdrblkbs here is a detailed description of permission model (https://github.com/MicrosoftDocs/Virtualization-Documentation/blob/live/virtualization/windowscontainers/manage-containers/container-storage.md#permissions) Hopefully, this addresses your concern. Please let me know if you have questions..
Closing issue as there have been no further questions. Feel free to reopen, log a new issue, or open an issue on the Documentation if there are unanswered questions.
Hello.. I am trying to run an image on Azure Windows Server 1709 with containers machine. I have mapped volume using -v
Hello everyone, i hope anyone can help me out with the following issue.
Short Recap:
I am trying to build a netcoreapp2.0 project with mircosoft/dotnet:2.0.3-sdk-nanoserver-1709 as follows:
docker run -it --rm -v ${PWD}:c:/data microsoft/dotnet:2.0.3-sdk-nanoserver-1709
When trying to build the project within the container withdotnet build
i run intoC:\Program Files\dotnet\sdk\2.0.3\NuGet.targets(102,5): error : Access to the path is denied. [C:\data\testProject.csproj]
Steps to reproduce the issue
dotnet new console
docker run -it --rm -v ${PWD}:c:/data microsoft/dotnet:2.0.3-sdk-nanoserver-1709
or rundocker run -it --rm -v PathToProject:c:/data microsoft/dotnet:2.0.3-sdk-nanoserver-1709
where PathToProject is the path to the project directorycd data
dotnet build
ordotnet run
Expected behavior
Successful build.
Actual behavior
Error Message:
C:\Program Files\dotnet\sdk\2.0.3\NuGet.targets(102,5): error : Access to the path is denied. [C:\data\testProject.csproj]
Output of
docker version
Output of
docker info
Regards