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

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

    Sometimes, this error appears if you built stack before. Reason of giving error is migh be file permissions. If in building process docker generates new files or edits some files, there will be some root owned files.

    So, if the reason is permissions, make your user the owner of all application files.

    $ sudo chown -R ${USER} .
    

提交回复
热议问题