mq-container
mq-container copied to clipboard
User permissions for mounted volumes
I have built MQ9.2.3 using a production licence so we can deploy this to an onprem cloud. I'm having permission issues with the volume, which appears to be caused by the use of the 1001 uid. The app mounts the volume ok, but is unable to create directories...
Detected 'xfs' volume mounted to /mnt/mqm
mkdir /mnt/mqm/data: permission denied
Volume management is abstracted from us, I can really only specify the volume as below..
volumes:
- containerPath: /mnt/mqm
hostPath: /ql0007
mode: RW
Any suggestions on how I can handle this? Is there someway to provide the user mounting the volume at runtime? I could rebuild the image after updating all references of 1001 to an alternate user that exists, but this would potentially mean having environment specific images built.