Created
April 29, 2023 07:08
-
-
Save macvinpinto/ecae7d3ac9cde3bce33dbe0628303d5e to your computer and use it in GitHub Desktop.
Install docker on wsl2 without docker desktop
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
| # https://nickjanetakis.com/blog/install-docker-in-wsl-2-without-docker-desktop | |
| # Install Docker, you can ignore the warning from Docker about using WSL | |
| curl -fsSL https://get.docker.com -o get-docker.sh | |
| sudo sh get-docker.sh | |
| # Add your user to the Docker group | |
| sudo usermod -aG docker $USER | |
| # Install Docker Compose v2 | |
| sudo apt-get update && sudo apt-get install docker-compose-plugin | |
| # Sanity check that both tools were installed successfully | |
| docker --version | |
| docker compose version | |
| # Using Ubuntu 22.04 or Debian 10 / 11? You need to do 1 extra step for iptables | |
| # compatibility, you'll want to choose option (1) from the prompt to use iptables-legacy. | |
| sudo update-alternatives --config iptables |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Many thanks from Germany!