Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Running Docker and Azure CLI from WSL
# Environment variables you need to set so you don't have to edit the script below.
export DOCKER_CHANNEL=stable
# Update the apt package index.
sudo apt-get update
# Install packages to allow apt to use a repository over HTTPS.
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
# Add Docker's official GPG key.
curl -fsSL | sudo apt-key add -
# Verify the fingerprint.
sudo apt-key fingerprint 0EBFCD88
# Pick the release channel.
sudo add-apt-repository \
"deb [arch=amd64] \
$(lsb_release -cs) \
# Update the apt package index.
sudo apt-get update
# Install the latest version of Docker CE.
sudo apt-get install -y docker-ce
# Allow your user to access the Docker CLI without needing root.
sudo usermod -aG docker $USER
# Install Docker Compose into your user's home directory through PIP.
sudo apt-get install -y python python-pip
pip install --user docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment