Comment on Restart Docker Container Without root privileges

tvcvt@lemmy.ml ⁨7⁩ ⁨months⁩ ago

Not sure how your stack works together, but sudo will let you run particular commands as a different user and you can be pretty specific with the privileges. For example you can have a script that’s only allowed to run docker compose -f /path/to/compose.yml restart containername as a user in the docker group. Maybe there’s some docker-specific approach, but this should work with traditional Unix tools and a little scripting.

source
Sort:hotnewtop