Skip to content

Commit

Permalink
Update set-up-windows-containers-with-powershell.md (#21152)
Browse files Browse the repository at this point in the history
* Update set-up-windows-containers-with-powershell.md

The example Dockerfile did not work. Updated to get LTSC which will be installed with powershell 7, so "RUN powershell.." switched to "RUN pwsh..".

* Update set-up-windows-containers-with-powershell.md

Return pwsh command to powershell as mcr.microsoft.com/windows/servercore:ltsc2019 installs powershell 5 by default, not 7.
  • Loading branch information
stackoverjoe authored Oct 21, 2020
1 parent 9f993bf commit a8bc0a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ With [Windows Containers](/virtualization/windowscontainers/about/index), you ca
To use Windows Containers, you just need to write Windows PowerShell commands in the DockerFile, as demonstrated in the following example:

```dockerfile
FROM microsoft/windowsservercore
FROM mcr.microsoft.com/windows/servercore:ltsc2019
LABEL Description="IIS" Vendor="Microsoft" Version="10"
RUN powershell -Command Add-WindowsFeature Web-Server
CMD [ "ping", "localhost", "-t" ]
Expand Down

0 comments on commit a8bc0a6

Please sign in to comment.