Run Azure PowerShell in a Docker Container

You can run the latest image version of using the following command:

docker run -it mcr.microsoft.com/azure-powershell

You can also run a specific version of Azure PowerShell using the following command:

docker run -it mcr.microsoft.com/azure-powershell:3.6.1-ubuntu-18.04

If you want to just download and pull the images from the official Microsoft Container Registry (MCR) you can just run the docker pull commands.

docker pull mcr.microsoft.com/azure-powershell

Pull a specific version of Azure PowerShell using the following command:

docker pull mcr.microsoft.com/azure-powershell:3.6.1-ubuntu-18.04

This content was borrowed from https://www.thomasmaurer.ch/2020/03/run-azure-powershell-in-a-docker-container/.