-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
When attempting to run the container as a non-root user, it fails to start. This requires running the container with --user root, which is not ideal for security and portability.
Steps to Reproduce:
-
Pull the latest image.
-
Run the container with a non-root UID/GID, e.g.:
docker run --user 1000:1000 <image>
-
Observe that it fails to start.
Expected Behavior:
The container should run successfully without root privileges, following best practices for container security.
Actual Behavior:
Container startup fails unless run as root.
Suggested Fix:
- Ensure proper file ownership and permissions in the image.
- Configure a non-root default user in the
DockerfileviaUSERinstruction. - Avoid binding privileged ports or operations that require root.
Metadata
Metadata
Assignees
Labels
No labels