Docker as Normal User

Daniele Mazzotti kappei84 at gmail.com
Wed Nov 28 17:33:34 UTC 2018


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.


More information about the freebsd-virtualization mailing list