Easily use PnP PowerShell to automate tasks through Docker containers to administer Microsoft 365
50K+
PnP PowerShell is a .NET 8 based PowerShell Module providing nearly 800 cmdlets that work with Microsoft 365 environments such as SharePoint Online, Microsoft Teams, Microsoft Project, Security & Compliance, Entra ID, and more.
latest: The latest stable image
docker pull m365pnp/powershell or docker pull m365pnp/powershell:latest or docker pull m365pnp/powershell:stablenightly: The latest nightly build image
docker pull m365pnp/powershell:nightlyStarting an isolated container with the latest stable PnP.PowerShell module installed:
docker run --rm -it m365pnp/powershell
Starting a PnP.PowerShell container with the current directory mounted:
docker run --rm -it -v ${PWD}:/home -w /home m365pnp/powershell
docker run --rm -it -v ${PWD}:c:/app -w c:/app m365pnp/powershell
Running a PnP.PowerShell script which is locally stored on your machine in a container unattended:
docker run --rm -v ${PWD}:/scripts -w /scripts m365pnp/powershell script-to-run.ps1
docker run --rm -v ${PWD}:c:/scripts -w c:/scripts m365pnp/powershell script-to-run.ps1
Tags names mean the following:
<version>[-nightly/-stable]-<architecture>
Looking for other architectures? Let us know!
To find the version numbers please visit https://www.powershellgallery.com/packages/PnP.PowerShell
To give feedback for PnP.PowerShell or for how the images are built, file an issue at PnP/PowerShell
Content type
Image
Digest
sha256:7e1530169…
Size
110 MB
Last updated
about 13 hours ago
Requires Docker Desktop 4.37.1 or later.
Pulls:
612
Last week