File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
reference/docs-conceptual/install Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 11---
22description : How to use PowerShell that's preinstalled in a Docker image.
3- ms.date : 06/28/2023
3+ ms.date : 02/05/2024
44ms.devlang : powershell
55ms.topic : conceptual
66title : Using PowerShell in Docker
@@ -27,13 +27,20 @@ GitHub.
2727
2828## Using PowerShell in a container
2929
30- The following steps show the Docker commands required to download the image and start an interactive
31- PowerShell session.
30+ The following steps show the Docker commands required to download the image containing the latest
31+ available stable version of PowerShell and start an interactive PowerShell session.
3232
3333``` console
3434docker run -it mcr.microsoft.com/powershell
3535```
3636
37+ Use the following command to download and run the image containing the latest available preview
38+ version of PowerShell.
39+
40+ ``` console
41+ docker run -it mcr.microsoft.com/powershell:preview
42+ ```
43+
3744### Remove the image when no longer needed
3845
3946The following command is used to delete the Docker image when you no longer need it.
You can’t perform that action at this time.
0 commit comments