Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: windows: add a note about ContainerUser limited permissions #5346

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

profnandaa
Copy link
Collaborator

ContainerUser is not permitted to write to C:\ because of their limited permissions, (WD) at best.

Add a note explaining why we are using USER ContainerAdministrator in our dockerfile for us to be able to run:

RUN echo "Goodbye!" >> hello.txt

On client SKUs like Win11, there will be no issues since ContainerUser has (M) permissions on C:\

Fixes #4731 as by-design.

`ContainerUser` is not permitted to write to `C:\` because of
their limited permissions, `(WD)` at best.

Add a note explaining why we are using `USER ContainerAdministrator`
in our dockerfile for us to be able to run:
```
RUN echo "Goodbye!" >> hello.txt
```

On client SKUs like Win11, there will be no issues since
`ContainerUser` has `(M)` permissions on `C:\`

Fixes moby#4731 as by-design.

Signed-off-by: Anthony Nandaa <[email protected]>
@tonistiigi tonistiigi merged commit 1da789b into moby:master Sep 23, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WCOW: writing to a file in root directory fails with Access is denied for ContainerUser - except on Win11
4 participants