dotnet / dotnet/Docker.DotNet

Getting Windows npipe working in a container with non-admin users

Open
#391 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2.4k
Forks
416
PR merge metrics
No merged PRs in 30d

Description

Hi,
this is more a question rather than a issue... in the last days I've managed to get working the Docker.net client in a Windows nanoserver container mounting the Docker's host pipe as a volume like in the example below:
`docker container run -itd --user ContainerAdministrator -v \\.\pipe\docker_engine:\\.\pipe\docker_engine mycustomimage`
However I've seen that to get things working I've also need to specify --user ContainerAdministrator otherwise standard ContainerUser user is used, and this not being part of the Administrators group the client will throw a "Access denied" type error when trying to access to the Docker Pipe.
The question is if there are ways/configurations on host or container to overcome this behaviour using non-admin users specially in nanoserver images, when powershell is not available and you are forced to use the standard cmd?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.