DEV Community

Nakul
Nakul

Posted on • Edited on

3 2

Alternative for docker desktop (windows WSL)

Install ubuntu from Microsoft Store

  • Go to store and download Ubuntu 18.04 LTS (you can also try latest version)
    Ubuntu logo from Microsoft Store

  • Once installation is complete open Ubuntu 18.04 LTS from startup menu and set a username and password (username can be you systems username without '.' and password can be same as your system password)

Install docker in ubuntu

  • Open PowerShell in this directory and execute following commands
$ wsl -u root
$ sudo apt-get update
Enter fullscreen mode Exit fullscreen mode
$ sudo apt install docker.io
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
$ sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
Enter fullscreen mode Exit fullscreen mode
  • Once docker and docker-compose is installed, verify it by executing the command
$ docker -v
$ docker-compose -v
Enter fullscreen mode Exit fullscreen mode

Start docker daemon

  • Execute below command in cmd to start daemon
$ wsl -u root ^ dockerd
Enter fullscreen mode Exit fullscreen mode

NOTE: Do not close this window.

Whenever you turn on your system repeat step Start docker daemon to start the daemon.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay