Docker command can't connect to Docker daemon

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

    For Ubuntu 16.04

    Inside file /lib/systemd/system/docker.service change:

    ExecStart=/usr/bin/dockerd fd://
    

    with:

    ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375
    

    Inside file /etc/init.d/docker change:

    DOCKER_OPTS=
    

    with:

    DOCKER_OPTS="-H tcp://0.0.0.0:2375"
    

    and then restart your computer.

提交回复
热议问题