Need Guidance on Inter-Container Processes

I have a web server in a container that needs to kick off long-running command line processes in another container. Normally i would have all the tools installed on the same machine and call them via command line:

sometool --some-flag --some-param make_big_report

If i want to containerize sometool so that i can scale it out, how does the web server “call it” to start a job? It does not have docker installed inside of itself, so it cannot execute docker run, and the tool is not a service listening on a port like a database. Its just a command line tool.

Thanks for your help.

I hope you know at least one programming language :slight_smile:

Write a small wrapper that listens on a port,make it execute your cli tool whenever a request commes in. Executing a command in a different container is not possible.