Quantcast
Channel: How do I edit a file after I shell to a Docker container? - Stack Overflow
Viewing all articles
Browse latest Browse all 29

Answer by Mac for How do I edit a file after I shell to a Docker container?

$
0
0

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

Viewing all articles
Browse latest Browse all 29

Trending Articles