-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support to start the container as non-root user #47
Comments
So I don't know a lot about Dockerfiles, however within the dockerfile, cant you initially install the required packages and start the required daemons and then create a user/group and then switch to that user? |
The container is still started as root by default. But you can set |
I've tried a lot to support start container as a non-root user. Next I explain the problems encountered. The first problem is timezone. The backup tool symlinks the files in Of course there are other ways to solve this problem, a chain of symlinks, The second is that BusyBox cron does not support non-root user to start, even with It was fatal that the output of the script could not be redirected to the stdout when using The third issue, is directory permissions. We recommend mounting vaultwarden data volumes to Since this is only a backup tool and will not be accessed externally, it was not considered to support non-root user to start the container, so the design of the directory did not consider the permission issue at all. But if we modify the directory now, it will cause break change. I will look for other better solutions to support non-root users to start containers. |
Now the container cannot be started as a non-root user, because
crond
can only be started as root user.Find ways to start crond as a non-root user, or find alternatives to crond, such as aptible/supercronic or gjcarneiro/yacron. Not limited to the above two.
In Development.
The text was updated successfully, but these errors were encountered: