Install & RUN Docker in Windows Subsytem for Linux (WSL2)

preview_player
Показать описание


Here are the links to the documentations used in video:

Docker installation instructions

Use docker without "sudo" command

Security risks of using docker without sudo command.

Timestamps:
0:00 - How to install docker in windows subsystem for linux
5:15 - SOLUTION to "docker daemon not running, docker: cannot connect to the docker daemon"
Рекомендации по теме
Комментарии
Автор

First thanks for the tutorial. Now regarding the issue at 5:15.
I did not wanted to install docker-desktop on windows. I wanted windows clean of any development tools. So while trying to start the daemon manually I got an error stating that something was not OK with the iptables. Running the following commands helped solve the issue:
- sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
- sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy

dickwans
Автор

Docker was working for me on WSL2 at first installation. After retrurning from a brake, it was broken... Oh God... I was terrified... deleted and reinstalled docker about 10 times and then I came across this video... Thank you...

MuhammadIqbal-vdij