Last active
October 19, 2020 17:54
-
-
Save benjaminSchilling33/4e12b8371ef166bbb3388bf16838fc18 to your computer and use it in GitHub Desktop.
Install Docker for Debian on WSL2
This file contains hidden or 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
# See: https://github.com/microsoft/WSL/discussions/4872 | |
sudo apt remove docker docker-engine docker.io containerd runc | |
sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common iptables | |
sudo update-alternatives --set iptables /usr/sbin/iptables-legacy | |
/sbin/iptables --version | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian \ | |
$(lsb_release -cs) \ | |
stable" | |
sudo apt update | |
sudo apt install docker-ce docker-ce-cli containerd.io | |
sudo service docker start | |
sudo docker ps -a | |
sudo docker run --rm hello-world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment