This repo shows how to re-build the official MonogDB image to use a custom UID + GID.
That can be useful if you need data-persistence (using a volume) and want to map a host-user to the user being used by the container.
The default image uses the hardcoded UID/GID 999..
- Patch existing image (faster, easier)
- Re-Build official image