First copy the file out of the container:
docker cp my-container:/data/scripts/main.py main.py
Then edit locally with your vi, emacs or whatever, then put it back:
docker cp main.py my-container:/data/scripts/main.py
First copy the file out of the container:
docker cp my-container:/data/scripts/main.py main.py
Then edit locally with your vi, emacs or whatever, then put it back:
docker cp main.py my-container:/data/scripts/main.py