Cannot connect to the Docker daemon. Is 'docker -d' running on this host?

后端 未结 3 2047
孤独总比滥情好
孤独总比滥情好 2020-12-16 12:07

I am trying to run my Docker commands, but I am facing the notification error in the title. I tried running:

ps auxww | grep docker

but sti

相关标签:
3条回答
  • 2020-12-16 12:23

    In my case I had multiple docker instances running so it didn't know what to attach to. After killing them and restarting, my problem was solved.

    0 讨论(0)
  • 2020-12-16 12:27

    How about launching the daemon

    sudo service docker start
    

    should do the trick.

    Or

    sudo docker -d
    
    0 讨论(0)
  • 2020-12-16 12:48

    If you can verify that the docker daemon is running then it may be that your user is not allowed to access docker.

    To do this add yourself to the docker group.

    sudo usermod -aG docker <userid>
    

    Remember to do a re-login or otherwise apply/activate the new group permission.

    newgrp docker
    
    0 讨论(0)
提交回复
热议问题