You can run the latest image version of using the following command:
1 |
docker run -it mcr.microsoft.com/azure-powershell |
You can also run a specific version of Azure PowerShell using the following command:
1 |
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.
1 |
docker pull mcr.microsoft.com/azure-powershell |
Pull a specific version of Azure PowerShell using the following command:
1 |
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/.