open and edit docker container code example
Example 1: install vi editor ubuntu dockerfile
apt-get update
apt-get install vim
Example 2: edit files inside docker container
docker cp <container>:/path/to/file.ext .
docker cp file.ext <container>:/path/to/file.ext