Skip to content

Commit

Permalink
docs: windows: add a note about ContainerUser limited permissions
Browse files Browse the repository at this point in the history
`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.

Signed-off-by: Anthony Nandaa <[email protected]>
  • Loading branch information
profnandaa committed Sep 23, 2024
1 parent 23a2b6f commit 10aa090
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ Now that everything is setup, let's build a [simple _hello world_ image](https:/
This message shows that your installation appears to be working correctly.
"@
```
> **NOTE:** Writing to a file directly under `C:\` needs extra permissions that are `ContainerAdministrator`.
> The `ContainerUser` is default user for `nanoserver` image. See more details at [#4731](https://github.com/moby/buildkit/issues/4731).
1. Build and push to your registry (or set to `push=false`). For Docker Hub, make sure you've done `docker login`. See more details on registry configuration [here](../README.md#imageregistry)
```powershell
Expand Down

0 comments on commit 10aa090

Please sign in to comment.