Docker command can't connect to Docker daemon

后端 未结 23 3128
有刺的猬
有刺的猬 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:16

    After install everything and start the service, try close your terminal and open it again, then try pull your image

    Edit

    I also had this issue again, if the solution above won't worked, try this solution that is the command bellow

    sudo mv /var/lib/docker/network/files/ /tmp/dn-bak
    

    Considerations

    If command above works you probably are with network docker problems, anyway this resolves it, to confirm that, see the log with the command bellow

    tail -5f /var/log/upstart/docker.log
    

    If the output have something like that

    FATA[0000] Error starting daemon: Error initializing network controller: could not delete the default bridge network: network bridge has active endpoints 
    /var/run/docker.sock is up
    

    You really are with network problems, however I do not know yet if the next time you restart(update, 2 months no issue again) your OS will get this problem again and if it is a bug or installation problem

    My docker version

    Client:
     Version:      1.9.1
     API version:  1.21
     Go version:   go1.4.2
     Git commit:   a34a1d5
     Built:        Fri Nov 20 13:12:04 UTC 2015
     OS/Arch:      linux/amd64
    
    Server:
     Version:      1.9.1
     API version:  1.21
     Go version:   go1.4.2
     Git commit:   a34a1d5
     Built:        Fri Nov 20 13:12:04 UTC 2015
     OS/Arch:      linux/amd64
    

提交回复
热议问题