Skip to content

Allow for setting of container UID/GID #2483

@rgarcia6520

Description

@rgarcia6520

Steps To Reproduce

Deploy docker container on host with volume mounted on share where uid 1000 does not exist.

Tested deploying on my unraid server where the default uid/gid for non-privileged containers is 99/100 and container is not able to write to any directories or create any files. If I could overwrite the UID/GID via env var then it would be successful. I don't see existing options in the container or in the documentation to perform this.

Expected Result

start up container, container is healthy and runs smoothly.

Actual Result

Permission Denied errors galore.

Screenshots or Videos

No response

Additional Context

Running on an Unraid server/host as a docker container. Have a dozen other containers running happily on the server.

Githash Version

N/A

Environment Details

  • Operating System: Unraid 6.11.5
  • Environment: Docker
  • Hardware: R5 3600X, 32GB RAM, 16TB storage

Database Image

postgres:12

Issue-Link

#2480

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

Metadata

Metadata

Assignees

Labels

bugbw-lite-deployAn Issue related to Bitwarden Lite deployment

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions