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

December 18, 2025 2 answers
Asked by ~trimming the edges
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!

Answers

~+orange peel
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.
Reply to this answer
RubberDuckDebate
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.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions