What to do if docker on Ubuntu doesn’t recognize addition of a user to its group when using PBIS with AD

You add a user to group docker so that you can run docker commands without having to be root or a sudoer.

On an Ubuntu 16.04 server which authenticates against AD using PBIS, I added users to group docker, but wasn’t getting recognized at all and had to use sudo, which defeats the purpose.

All I did was the following:

  1. Edit /etc/group
  2. go to the bottom of the file where you will find the docker group
  3. change the name of the AD group from lower case to upper case characters and save, e.g.:
    docker:x:999:hobba\socrat to docker:x:999:HOBBA\socrat
  4. Enjoy!

About SoCRaT

Systems Engineer, OSS & Linux Geek
This entry was posted in Linux, Uncategorized and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s