Created
December 27, 2018 04:24
-
-
Save justinyoo/703ceb6b3623803a68808ae63d7cc3c7 to your computer and use it in GitHub Desktop.
Running Docker and Azure CLI from WSL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This works on WSL - Ubuntu 18.04 LTS | |
# Add repository | |
sudo apt-get install apt-transport-https lsb-release software-properties-common -y | |
AZ_REPO=$(lsb_release -cs) | |
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \ | |
sudo tee /etc/apt/sources.list.d/azure-cli.list | |
# Install Microsoft signing key | |
wget https://packages.microsoft.com/keys/microsoft.asc | |
sudo apt-key add microsoft.asc | |
rm microsoft.asc | |
# Install Azure CLI | |
sudo apt-get update | |
sudo apt-get install azure-cli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment