Last active
September 6, 2019 15:22
-
-
Save atxryan/f92ae8ad663a477ef32f8c7a45a1ac55 to your computer and use it in GitHub Desktop.
Docker in WSL2
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
sudo apt-get update | |
# Install Docker dependencies | |
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
# Add Docker PGP key | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
# Add Docker Repository | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
# Install latest Docker version | |
sudo apt-get update | |
sudo apt-get install docker-ce | |
# Check that Docker is installed | |
docker --version | |
# Check the service status and/or start docker | |
sudo service docker status | |
sudo service docker start | |
# Add docker permissions to current user | |
# You must log out of the terminal and back in to take effect | |
sudo usermod -a -G docker $USER | |
docker info | |
docker ps | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment