usermod -aG docker alice

Category: Administration

usermod -aG docker alice

Add user alice to the docker group without removing existing groups

Adds an existing user to the docker group without removing them from any other groups. -a means 'append' (don't replace existing groups).
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.