I successfully determined how to execute the container without requiring root permissions. Upon inspecting the Dockerfile (https://github.com/percona/pmm/blob/main/build/docker/client/Dockerfile#L5 ), I discovered the creation of a user with the ID 1002, granting it permissions on the /usr/local/percona/pmm2 directory, where the binaries are stored. I utilized this specific user when launching the container, specifying it in the container configuration as shown below
securityContext:
runAsUser: 1002
Though the objective has been met, the issue still persists that the pmm-client container doesn’t honor the paths-base argument.
PMM_AGENT_PATHS_EXPORTERS_BASE has higher priority then PMM_AGENT_PATHS_BASE. that’s why it’s overridding this value for exporters.
if you put your exporters into /mnt/pmm2/exporters/ then please remove PMM_AGENT_PATHS_EXPORTERS_BASE otherwise please provide proper path to exporters.