Skip to content

Commit

Permalink
fix: windows getting started guide for uniformity
Browse files Browse the repository at this point in the history
This adds `ContainerAdministrator` as the default user to
guarantee a uniform experience on all the platforms.
The previous guide would fail on WS2022 but work
on WS2019 and Windows 11. The issue is being
investigated here #4731

Signed-off-by: Anthony Nandaa <[email protected]>
(cherry picked from commit 2aa80d7)
  • Loading branch information
profnandaa authored and tonistiigi committed Mar 4, 2024
1 parent acaf4cd commit b9e1581
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ Now that everything is setup, let's build a [simple _hello world_ image](https:/
```powershell
Set-Content Dockerfile @"
FROM mcr.microsoft.com/windows/nanoserver:ltsc2022
USER ContainerAdministrator
COPY hello.txt C:/
RUN echo "Goodbye!" >> hello.txt
CMD ["cmd", "/C", "type C:\\hello.txt"]
Expand Down

0 comments on commit b9e1581

Please sign in to comment.