Cannot connect to the Docker daemon on bash on Ubuntu windows

前端 未结 7 1284
时光说笑
时光说笑 2021-01-30 12:53

I am able to install docker, docker-compose and docker-machine

However when I try to run

root@DESKTOP-51NFMIM:~# docker ps
Cannot connect to the Docker d         


        
7条回答
  •  不知归路
    2021-01-30 13:38

    If you are using docker desktop for windows (and do not require TLS for the connection) then go to the docker desktop setting, general section and enabled the checkbox "Expose daemon on tcp://localhost:2375 without TLS".

    Update: in newer Docker desktop versions the WSL integration has moved to the resources section.

提交回复
热议问题