Docker not running on Ubuntu WSL - Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

前端 未结 2 960
旧时难觅i
旧时难觅i 2021-02-20 10:16

I am running WSL 2 (Ubuntu) on a Windows 10 machine. I installed Docker on my Ubuntu using the official Docker guide (https://docs.docker.com/engine/install/ubuntu/#install-usin

2条回答
  •  野性不改
    2021-02-20 10:52

    Go into PowerShell and type: docker context ls

    Output:

    NAME                DESCRIPTION                               DOCKER ENDPOINT                  KUBERNETES ENDPOINT   ORCHESTRATOR
    default *           Current DOCKER_HOST based configuration   npipe:////./pipe/docker_engine                         swarm
    

    Go back into your wsl/ubuntu setup and type export DOCKER_HOST=unix:///var/run/docker.sock

提交回复
热议问题