Docker command can't connect to Docker daemon

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

    enter as root (sudo su) and try this:

    unset DOCKER_HOST
    docker run --name mynginx1 -P -d nginx
    

    I've the same problem here, and the docker command only worked running as root, and also with this DOCKER_HOST empty

    PS: also beware that the correct and official way to install on Ubuntu is to use their apt repositories (even on 15.10), not with that "wget" thing.

提交回复
热议问题