I'm trying to run a python script but before my script I have to do docker run -it --rm psycopg2 python
.
Inside my script I want to calculate some results and then store them locally in files.
I currenty do all the above by hand. First I run docker run -it --rm psycopg2 python
and then I type one by one the python commands to the shell but I still cannot save anything to a file locally.
Any ideas?