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!
Unknown's avatar

About Ahmed Tawfik

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

Leave a comment