How do I remove a user from the Docker group after uninstalling a program?

0
18
Asked By ChillPineapple42 On

I'm new to Linux and was using a program called Winboat. I added myself to the Docker group because of it, but now I'd like to remove my user from that group. I've tried using the command `sudo usermod -rG docker $user`, but it didn't work even after I logged out and back in. Is there a specific command to do this, or should I reboot my system? Any help would be appreciated!

2 Answers

Answered By CleverCactus99 On

You might want to use `sudo gpasswd -d $USER docker` to remove your user from the Docker group. Sometimes, it’s better to use this command. However, if you're not seeing Docker anymore because you uninstalled Winboat completely and it also uninstalled Docker, it seems like you might not need to worry about it anymore! Just check if Docker is still on your system.

Answered By TechieTurtle87 On

First, it's a good idea to check if your user is still in the Docker group by running `sudo cat /etc/group | grep -i docker`. That will show if you’re still listed there. If you see your username in the output, then you're still part of the group. Also, make sure you've fully removed Winboat; sometimes incomplete uninstallations can lead to confusion about what's still installed.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.