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