My Python code with Docker SDK is running within the container. I need to start an additional docker container, pass input data files and wait for the container to run till completion. What will be the best solution:
- Run docker within docker? (that mean to register a new image within docker and start the container)
- Somehow access docker Engine, and ask it to run the second docker? (if so, where can I find any sample of this solution)
- start two dockers and connect with REST API (The worst solution in my case, since each docker, require a lot of resources)
- Any other solution will be nice to hear and test!!!!!!!!!!!!!
Source: Docker Questions