user 'docker' does not exist

4,216 views
Skip to first unread message

Dan Ames

unread,
Sep 25, 2016, 8:49:17 PM9/25/16
to Tethys Platform
Following the steps for a new Tethys Platform installation, I am getting an error on this step:

pasted1

after running the gpasswd command I get: 

gpasswd: user 'docker' does not exist.

Any ideas what's going on here?

Thanks,

Dan

dan.ames.byu

unread,
Sep 25, 2016, 10:39:44 PM9/25/16
to Tethys Platform, dan....@byu.edu
Fixed my own problem Seems we need to update the installation instructions to tell the user to add them selves to the docker group with a command like this:

sudo usermod -aG docker $(whoami)

- Dan

sdc50

unread,
Sep 26, 2016, 9:54:15 AM9/26/16
to Tethys Platform, dan....@byu.edu
Dan,

The line that you got an error on:

sudo gpasswd -a ${USER} docker

is supposed to add your user to the docker group. It would be interesting to figure out why that line didn't work for you. Based on the error that you reported is seems like the variable ${USER} was not defined, so it evaluated to the empty string and then the argument `docker` which was supposed to denote the group was read in positionally as the user argument instead of the group; thus the error "user 'docker' does not exist". Usually on Ubuntu (desktop or server) the ${USER} variable is defined by default. I'm assuming your running on an AWS VM, so maybe have some differences there. I remember running into some problems when I was trying to set up Tethys on AWS a couple of years ago. Unfortunately, I don't remember the details, or even if we ended up getting it to work. 

Dan Ames

unread,
Sep 26, 2016, 10:07:44 AM9/26/16
to sdc50, Tethys Platform
OK thanks Scott. This is actually a server I'm setting up on DigitalOcean. It would be nice if our read the docs pages supported comments so we could add notes like this easily... 

--
You received this message because you are subscribed to the Google Groups "Tethys Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tethysplatfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tethysplatform/f1d9f5f9-5617-461f-8b13-e135cd9f1843%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

swainn

unread,
Sep 26, 2016, 11:54:49 AM9/26/16
to Tethys Platform, scottych...@gmail.com, dan....@byu.edu
Dan, the command you shared is equivalent to the command in the docs (it adds the user to the group, rather than adding the group to the user). I agree with @sdc50's evaluation. My guess is you need to modify the command to be:

sudo gpasswd -a $(whoami) docker

To answer the question about why logging out is required, it is necessary to effect any changes to users and user groups. In this case,  adding your user to the docker group.

swainn

unread,
Sep 26, 2016, 12:01:42 PM9/26/16
to Tethys Platform, scottych...@gmail.com, dan....@byu.edu
In terms of being able to add comments to the Tethys documentation there is this in the FAQ of Read the Docs:


We may want to look into Discus or similar: https://disqus.com/
Reply all
Reply to author
Forward
0 new messages