Docker command can't connect to Docker daemon

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

    I had the same problem. Been struggling for two days to solve it.

    It only worked when I did:

    1. According to Docker's Tutorial, you need to add the Docker key if not already added using:

      $ sudo wget -qO- https://get.docker.com/gpg | sudo apt-key add -

    2. Then make sure you grant docker privileges to yourself using:

      $ sudo usermod -aG docker $USER

    Hope this helps you too.

提交回复
热议问题