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

前端 未结 15 2187
北恋
北恋 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:07

    You should add your user in docker group. And then, you can use docker command without 'sudo'.

    $ sudo usermod -aG docker ${USER}
    $ sudo service docker restart
    

    Next, you have to logout in your OS. Finally, when you login, you can use docker command without 'sudo'.

提交回复
热议问题