PowerShell

PowerShell

Docker app from grtgbln's Repository

Overview

A Docker container with PowerShell pre-installed. Useful for running PowerShell scripts.
This is a CLI tool. Please edit the **Post Arguments** accordingly.

Use PowerShell in Docker

The .NET team publishes Docker images with PowerShell preinstalled. This article shows you how to get started using PowerShell in the Docker container.

Find available images

These images require Docker 17.05 or newer. Also, you must be able to run Docker without sudo or local administrative rights. For install instructions, see Docker's official documentation.

The .NET team publishes several Docker images designed for different development scenarios. Only the image for the .NET SDK contains PowerShell. For more information, see Official .NET Docker images.

Use PowerShell in a container

The following command downloads the image containing the latest available stable versions of the .NET SDK and PowerShell.

docker pull mcr.microsoft.com/dotnet/sdk:9.0

Use the following command to start an interactive PowerShell session in the container.

docker run -it mcr.microsoft.com/dotnet/sdk:9.0 pwsh

To download and run the latest Long Term Support (LTS) version of PowerShell, change the image name to mcr.microsoft.com/dotnet/sdk:8.0. When you use these image tags, Docker downloads the appropriate image for your host operating system. If you want an image for a specific operating system, you can specify the operating system in the image tag. See the Microsoft Artifact Registry for a list of available tags.

Support lifecycle

The .NET support policy defines how these images are supported. These images are provided for development and testing purposes only. If you need a production-ready image, you should build your own images. For more information about these Docker images, visit the dotnet-docker repository on GitHub.

The images previously published by the PowerShell team will be marked as deprecated in the Microsoft Container Registry (MCR).

Telemetry

By default, PowerShell collects limited telemetry without personal data to help aid development of future versions of PowerShell. To opt-out of sending telemetry, create an environment variable called POWERSHELL_TELEMETRY_OPTOUT set to a value of 1 before starting PowerShell from the installed location. The telemetry we collect falls under the Microsoft Privacy Statement.

Install PowerShell on Unraid in a few clicks.

Find PowerShell in Community Apps on your Unraid server, review the template, and click Install. Unraid handles the Docker app or plugin setup from the published template.

Open the Apps tab on your Unraid server Search Community Apps for PowerShell Review the template variables and paths Click Install

Requirements


        This is a CLI tool; edit **Post Arguments** accordingly. Your script will be available in /scripts.
    

Related apps

Details

Repository
mcr.microsoft.com/powershell:latest
Last Updated2026-07-15
First Seen2025-06-07

Runtime arguments

Network
bridge
Privileged
false

Template configuration

Scripts PathPath

Path to your PowerShell scripts directory

Target
/scripts
Default
/mnt/user/appdata/powershell/scripts
Value
/mnt/user/appdata/powershell/scripts