I have a Python script which needs to be run inside a Docker container (because that's how a piece of software needed is installed). This script creates some files that are needed for later processing.
When I run in the Command Prompt
docker exec -it CONTAINER bash
python3 script.py
the script does generate the files. However, I tried to use a batch file to automate the process:
docker exec -it CONTAINER python3 script.py
The script does run, since it prints information in the Command Prompt, but it does not create the files I need. What am I doing wrong?