Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Nov 2018 18:33:20 +0100
From:      Daniele Mazzotti <kappei84@gmail.com>
To:        freebsd-virtualization@freebsd.org
Subject:   Docker as Normal User
Message-ID:  <CAC=ypSWHAOw512WiM3-4pf=oioM4wNhsvFehj3jetH4S_EVQ2w@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello there,

I was skimming trough the documentation at the following address (
https://wiki.freebsd.org/Docker) while installing docker on my Freebsd
11.2-RELEASE box last night, and I spotted something which did not work in
my case.

In order to run Docker as a "non-root/non-super user" one is supposed to
issue the  command below:

pw usermod <you> -G operator,...

Unfortunately that does not work, because in that case, when I issue
whatever docker command (e.g. docker ps) I get the following error:

Get http://%2Fvar%2Frun%2Fdocker.sock/v1.19/images/search?term=centos:
dial unix /var/run/docker.sock: connect: no such file or directory.
Are you trying to connect to a TLS-enabled daemon without TLS?

What has fixed my problem was to assign the user to the wheel group
instead. Is it possible that the documentation is outdated? In my
opinion being part of the wheel a group is a tad too much.

Best regards,

Daniele.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAC=ypSWHAOw512WiM3-4pf=oioM4wNhsvFehj3jetH4S_EVQ2w>