I am trying to run my python script on docker. I tried different ways to do it but not able to run it on docker. My python script is given below:
import os
Another way to run python script on docker can be: copy the local python script to docker:
docker cp yourlocalscript.path container_id:/dst_path/
container id can be found using:
docker ps
run the python script on docker:
docker exec -it python /container_script_path.py