... so that the two containers both run in the same host, but NOT container inside container?
Long version
I have made two python programs called scheduler
and worker
. The scheduler periodically asks a server if there is any task
to do. If there is some coming-soon task
the scheduler
will download input data and start the worker
with the downloaded data. I am now thinking of containerizing the two programs. What I need here include:
- Make
Dockerfile
s for the two containers. - Two containers should share a common volume (belonging to the host, of course) where the input data is downloaded / used.
- Scheduler container should be able to start worker container so that the worker container will run in the host environment but NOT inside the scheduler container.
Is there an easy way to do so?