Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created December 27, 2018 04:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/703ceb6b3623803a68808ae63d7cc3c7 to your computer and use it in GitHub Desktop.
Save justinyoo/703ceb6b3623803a68808ae63d7cc3c7 to your computer and use it in GitHub Desktop.
Running Docker and Azure CLI from WSL
# 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