Ubuntu on WSL2: Cannot connect to the Docker daemon at unix

background

When issuing a Docker command from the Ubuntu terminal on WSL2 Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Was displayed, and it took time to resolve it, so I decided to leave it as a memorandum for the future.

Solutions

Launch Dokcer Desktop, select ** WSL INTEGRATION ** from Resources, The following was solved smoothly by enabling the two.

Enable integration with my default WSL distro ** Ubuntu-xxxx (Example: 18.04) **

Recommended Posts

Ubuntu on WSL2: Cannot connect to the Docker daemon at unix
How to deal with `Cannot connect to the Docker daemon at unix: /// var/run/docker.sock. Is the docker daemon running?`
[Solution] What to do if you get a Docker error'ERROR: Cannot connect to the Docker daemon at unix: ///var/run/docker.sock. Is the docker daemon running?'
The key to running Docker on Raspberry Pi 4 (Ubuntu server 20.04)
How to change the timezone on Ubuntu
Try putting Docker in ubuntu on WSL
The story of fighting ubuntu errors 0x80370114, 0x80000000 to enable docker desktop with wsl2 on windows10 home
Serially connect to Ubuntu on Raspberry Pi
Docker on Ubuntu18.04 on WSL2 and VSCode installation instructions
Systemctl cannot be used on Ubuntu inside Docker container
ubuntu on wsl part 10
Docker installation on WSL2
[Note] Flow from docker installation to JupyterLab startup on ubuntu
I want to use screen sharing on the login screen on Ubuntu 18
Install docker and docker-compose on ubuntu in the shortest process
I tried to build the environment of WSL2 + Docker + VSCode
Install Docker on Ubuntu Server 20.04
Oracle Java 8 on Docker Ubuntu
Install Java on WSL Ubuntu 18.04
Ruby installation on WSL2 + Ubuntu 20.04
Results of trying to use NVENC (CUDA) with Ubuntu 18.04 on WSL2
I want to connect SONY headphones WH-1000XM4 with LDAC on ubuntu 20.04! !!
A note when I was addicted to converting Ubuntu on WSL1 to WSL2
docker (200) Misra Example Suite at docker The road to completion of compilation
How to install and configure the monitoring tool "Graphite" on Ubuntu
Install Ubuntu20.04 on RaspberryPi 4 and build Kubernetes to run the container
Dynamically switch the database to connect to
Steps to run docker on Mac
Build the latest Samba 4 on Ubuntu 20.04
To beginners launching Docker on AWS
Run the AWS CLI on Docker
How to run JavaFX on Docker
How to use Bio-Formats on Ubuntu 20.04
How to install WildFly on Ubuntu 18.04
Preparing to use electron-react-boilerplate on Ubuntu 20.4
Elmer / Ice installation (Ubuntu on WSL)
Deploy Rails on Docker to heroku
Java cannot be installed on Ubuntu 13.04
How to build vim on Ubuntu 20.04
Using Docker on Windows10 Home WSL2
Challenge to install WSL2 and docker
How to solve the problem that notification cannot be requested on iOS14
Solved the problem of freezing due to sudden "EXT4-fs error" on Ubuntu 20.04
Put Zabbix in Ubuntu with Docker and monitor Docker on the same host
[Docker] How to build when the source code is bind-mounted on the container
Try Alfresco 6.0 on Windows (Docker will be introduced at the same time)
I tried migrating the portfolio created on Vagrant to the Docker development environment