New Group Membership Not Working
You ran usermod -aG docker ana, but ana still gets "permission denied" on the Docker socket in her open session. Why?
usermod -aG docker ana
ana
Choose one answer
The docker group must be created with groupadd -r first.
groupadd -r
-aG removes all other groups, so she lost access.
-aG
Group changes only apply after a reboot of the whole machine.
Groups are set at login; she needs a new session.