Am I trying to connect to a TLS-enabled daemon without TLS?

前端 未结 20 2386
暗喜
暗喜 2020-11-28 17:56

I\'m trying to learn about Docker, but I keep getting cryptic (to me) error messages.

Possibly the simplest example of this is trying to print the version of Docker

20条回答
  •  南笙
    南笙 (楼主)
    2020-11-28 18:33

    In my case (Linux Mint 17) I did various things, and I'm not sure about which of them are totally necessary.

    I included missing Ubuntu packages:

    $ sudo apt-get install apparmor lxc cgroup-lite
    

    A user was added to group docker:

    $ sudo usermod -aG docker ${USER}
    

    Started daemon (openSUSE just needs this)

    $ sudo docker -d
    

    Thanks\Attribution


    Thanks Usman Ismail, because maybe it was just that last thing...

    Stupid question but have you started the docker daemon? – Usman Ismail Dec 17 '14 at 15:04


    Thanks also to github@MichaelJCole for the solution that worked for me, because I didn't check for the daemon when I read Usman's comment.

    GitHub comment:

    sudo apt-get install apparmor lxc cgroup-lite
    sudo apt-get  install docker.io
    # If you installed docker.io first, you'll have to start it manually
    sudo docker -d
    sudo docker run -i -t ubuntu /bin/bash
    

    Thanks to fredjean.net post for noticing the missing packages and forget about the default Ubuntu installation instructions and google about other ways

    It turns out that the cgroup-lite and the lxc packages are not installed by default on Linux Mint. Installing both then allowed me to run bash in the base image and then build and run my image.


    Thanks to brettof86's comment about openSUSE

提交回复
热议问题