Comment on Restart Docker Container Without root privileges
iluminae@lemmy.world 7 months ago
You could write a script that just restarts your container, make sure unprivileged users cannot edit it, and do one of two things:
- make a sudoers entry for your unprivileged account to call just that script as a user in the docker group with sudo
- use setuid on the script to have it execute from the docker group even from other users
ShawiniganHandshake@sh.itjust.works 7 months ago
Most shells ignore setuid on scripts for security reasons.