Running Docker on WSL2 the right way

This page summarizes the projects mentioned and recommended in the original post on

Our great sponsors
  • OPS - Build and Run Open Source Unikernels
  • SonarQube - Static code analysis for 29 languages.
  • Scout APM - Less time debugging, more time building
  • GitHub repo Docker Compose

    Define and run multi-container applications with Docker

    # Finds the latest version $ compose_version=$(curl -fsSL -o /dev/null -w "%{url_effective}" # Downloads the binary to the plugins folder $ curl -fL --create-dirs -o ~/.docker/cli-plugins/docker-compose \ "${compose_version}/docker-compose-linux-$(uname -m)" # Assigns execution permission to it $ chmod +x ~/.docker/cli-plugins/docker-compose

  • GitHub repo switch

    # Finds the latest version $ switch_version=$(curl -fsSL -o /dev/null -w "%{url_effective}" # Downloads the binary $ sudo curl -fL -o /usr/local/bin/docker-compose \ "${switch_version}/docker-compose-linux-$(dpkg --print-architecture)" # Assigns execution permission to it $ sudo chmod +x /usr/local/bin/docker-compose

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

  • GitHub repo docker-credential-helpers

    Programs to keep Docker login credentials safe by storing in platform keystores

    # Finds the latest version $ wincred_version=$(curl -fsSL -o /dev/null -w "%{url_effective}" # Downloads and extracts the .exe $ sudo curl -fL \ "${wincred_version}/docker-credential-wincred-${wincred_version}-$(dpkg --print-architecture).zip" | zcat | sudo tee /usr/local/bin/docker-credential-wincred.exe >/dev/null # Assigns execution permission to it $ sudo chmod +x /usr/local/bin/docker-credential-wincred.exe

  • GitHub repo kind

    Kubernetes IN Docker - local clusters for testing Kubernetes

    The entire setup process may take some time, but you will have achieved almost everything that Docker Desktop used to provide to you (by the way, I use kind as an alternative to Docker Desktop's built-in K8s).

  • GitHub repo dotfiles

    Bootstrap your Ubuntu in a few minutes! (by felipecrs)

    For example, in my dotfiles, every single of these steps are automated, including configuring /etc/docker/daemon.json, changing ~/.profile, and even providing a way to automatically update your extra binaries (docker-compose, or the wincred.exe) every time you update your dotfiles (by using a feature of chezmoi - a dotfiles manager which I totally recommend).

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts