I currently have a docker-compose.yml file that builds two Dockerfiles. One docker file pulls Python and the other pulls Ubuntu . At the end, I have two containers named dataload_py and dataload_ubuntu. I mounted a file onto dataload_ubuntu that can only be ran on that container.
When I bash into the Python container using docker exec -it dataload_py bash
, how can I execute the mounted file on the Ubuntu container? They are bridged through the same network.
My end goal is to be able to spin up a Docker container with both Python and Ubuntu .