Recently I was able to run my app with ibmcom/mq:9.1.3.0-r3 and following Dockerfile definition:
FROM ibmcom/mq:9.1.3.0-r3
ENV LICENSE accept
ENV MQ_QMGR_NAME QM_MY_APP
USER root
RUN usermod -a -G mqm admin
RUN usermod -a -G mqm root
RUN useradd -g mqm my_user_id
ADD QueueManager /etc/mqm/myapp.mqsc
USER mqm
But now ibmcom/mq:9.1.3.0-r3 is not available on Dockerhub. When I pull and run other available docker versions (like 9.2.0.0-r1 and up) it throws following error because of commands in Dockerfile:
useradd: group 'mqm' does not exist
I read the MQ Custom Docker Image - MQM Group Not Found, where the user "chughts" suggests to "use htpasswd with bcrypt to create the users."
Does anyone knows, how to use htpasswd to create the users in mq? Thanks a lot for Your support in advance!
EDIT: I need to create an user via htpasswr for debug and local tests only. In production envirounment the qm's default user settings is used.