Docker: Enable Non-Root User Access
· One min read
Enable Non-Root User Access
- Enter the command below to create the docker group on the system.
sudo groupadd -f docker
- Type the following
usermod
command to add the active user to the docker group.
sudo usermod -aG docker $USER
- Apply the group changes to the current terminal session by typing:
newgrp docker
- Check if the docker group is in the list of user groups.
groups