Update permissions
To grant kirsty the ability to run Docker commands without sudo
, follow these steps:
- Add the User to the Docker Group
Run the following command on appserver to addkirsty
to thedocker
group:
bash
sudo usermod -aG docker kirsty
-
Apply Group Changes
The user needs to log out and log back in for the changes to take effect. You can prompt kirsty to do so or restart the system. -
Verify Access
Once logged back in, check if kirsty can run Docker commands withoutsudo
:
bash
docker ps
If the command runs successfully without requiring sudo
, the setup is complete. If you run into any issues, let me know—I’ve got your back! 🚀