Execute a shell script from one container in another

Hi guys,

Is it possible to execute a shell script from one container of another one running?

Container A -> executes a shell script of -> Container B

Let’s say I have a container of tomcat instances (Container B). Now, I have another one running Jenkins (Container A). I would like to build my app inside the Jenkins container (Container A) and execute a shell script of the tomcat container (Container B), which executes a deployment script.

Could you help me, what’s the best approach to do such a scenario?


Hi daribo,
Did you figure this out? or any info regarding this would be helpful?