Skip to content

Instantly share code, notes, and snippets.

@macvinpinto
Created April 29, 2023 07:08
Show Gist options
  • Select an option

  • Save macvinpinto/ecae7d3ac9cde3bce33dbe0628303d5e to your computer and use it in GitHub Desktop.

Select an option

Save macvinpinto/ecae7d3ac9cde3bce33dbe0628303d5e to your computer and use it in GitHub Desktop.
Install docker on wsl2 without docker desktop
# 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
@jacobcdando
Copy link

Many thanks from Germany!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment