0

I have a Windows grp and added a user to that grp to connect to MQ. I'm using this user (userID in the below code) in my python code to connect to a remote MQServer.

The Docker file uses ubuntu image as base image. Could anyone please let me know whether the docker file with ubuntu image and pymqi can connect to a remote MQServer using the Windows user in the python code as below? I'm getting the below error, if I set user-1001 in the Dockerfile. The MQ Server is not part of the Docker Image. pymqi.MQMIError: MQI Error. Comp: 2, Reason 2009: FAILED: MQRC_CONNECTION_BROKEN

If I don't use USER 1001 (dummy user) in the Dockerfile, I get AUTHORIZATION error.

Any help would be greatly helpful for me. Appreciate your help. Attached is the dockerfile and below is the code.

chughts
  • 4,210
  • 2
  • 14
  • 27
testbg testbg
  • 193
  • 2
  • 11
  • I am assuming that you are using `pymqi` in your docker image, in which case you should also have the IBM MQ redistributable client. If so have you tried to run one of the samples that come with the redistributable client from your docker image, just to check the connectivity? – chughts May 21 '21 at 10:16
  • You say "Attached is the dockerfile and below is the code" but neither are present. Could you also update your question to show the authorization error that is seen please. – Morag Hughson May 24 '21 at 11:49

0 Answers0