Unable to connect to MongoDb while I running a job from Jenkins on docker Unable to connect to MongoDb while I running a job from Jenkins on docker jenkins jenkins

Unable to connect to MongoDb while I running a job from Jenkins on docker


Had a very similar issue, In my case, we used public DNS that cause us the problem.Consider changing from public DNS to Public IP.

enter image description here