Docker command can't connect to Docker daemon

后端 未结 23 3126
有刺的猬
有刺的猬 2020-12-02 04:01

I want to make a move to Docker, so I\'ve just started to mess around with it. I\'ve installed Docker on a VirtualBox Ubuntu 15.10 (Wily Werewolf) installation and as sugges

23条回答
  •  攒了一身酷
    2020-12-02 04:30

    This question is currently number 3 on a Google search. After doing some research into solving this problem on my Linux system I thought I would write this answer. The original post states the problem is on Ubuntu but I also experienced the issue using Fedora. With that in mind, here is what I did to fix the problem.

    On Fedora 22

    Installing Docker:

    $> curl -fsSL https://get.docker.com/ | sh
    

    After installing Docker:

    A user needs to be added to the docker group.

    $> sudo usermod -aG docker
    

    The docker daemon needs to be started

    $> sudo service docker start
    

    You can set the daemon to start at boot

    $> sudo chkconfig docker on
    

    You can verify the docker service is running

    $> service docker status
    

    And one last final check

    $> docker run hello-world
    

提交回复
热议问题