Ubuntu 16.04 - > ERROR: Couldn't connect to Docker daemon - you might need to run `docker-machine start default`

前端 未结 15 2179
北恋
北恋 2021-02-03 17:48

I am getting error on ubuntu 16.04

\"ERROR: Couldn\'t connect to Docker daemon - you might need to run docker- machine start default. \"

15条回答
  •  礼貌的吻别
    2021-02-03 18:12

    After installing can execute command to have access to docker functionality without sudo. In my sitation, with same errors all is resolved after :

    $ sudo usermod -aG docker ${USER}
    $ su - ${USER}
    $ id -n
    $ sudo usermod -aG docker username
    

    and can restart docker after that:

    systemctl restart docker
    

提交回复
热议问题