Hey everyone, i’m trying to run crond as a non-root user within a container inside of the lastest alpine linux image.
I’m specifying a specific crondir that only contains my user’s crontab:
docker run -it --env-file ./environments/test.env blah:123 crond -f -d 0 -c /home/hustle/backend/config/cron
However, when it runs I see the message “crond: can’t set groups: Operation not permitted” and the command (just a simple echo statement) does not execute.
When i run the container as the root user (with docker’s -u flag specifying to run as “root”), it runs just fine, echos the output, etc…,
Any ideas on why that may be the case or what I can do to run crond as a non-root user successfully?