Docker command can't connect to Docker daemon

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

    For OSX:

    After opening docker and starting the 'default' machine via the Quickstart Terminal (https://docs.docker.com/engine/installation/mac/), you try docker commands and get this "can't connect to docker daemon" message, it turns out you need some env variables set:

    eval "$(docker-machine env default)"

    Then try it out with docker run hello-world to see if everything is peachy.

提交回复
热议问题