-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
I created a custom dockerfile. I want to start the container with a non-root user. However, I still couldn't.
Dockerfile
FROM syspass/syspass:3.2.2
# Create the user in a group of the same name and associate the application directory.
RUN groupadd -g 1000 myuser && useradd -r -m -u 1000 -g myuser myuser
USER myuser
Logs:
mycont | entrypoint: Starting with UID : 9001
mycont | useradd: Permission denied.
mycont | useradd: cannot lock /etc/passwd; try again later.
mycont | entrypoint: Starting with UID : 9001
mycont | useradd: Permission denied.
mycont | useradd: cannot lock /etc/passwd; try again later.
mycont | entrypoint: Starting with UID : 9001
Could you give me a tip on how to run the container with a non-root user?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels