Start container from another container

Hello everyone,

I am dockerizing the different parts of an application. However, there is some flow control over the processes, where A controls the events that should trigger B.

If we have both A and B in different containers, is it possible for A to start the container B? As it can happen more than once, the idea would be running B with --rm flag and some other parameters an arbitrary number of times.

Thanks!!

it’s possible by granting a container access to docker so that it can spawn other containers on your host…for details you can check this thread…help me a bunch when doing my project