
You just use a special container for this work. However, this makes it clear that the file is a text file rather than a directory or other file. When naming a new file, it is not necessary to include the. Otherwise, the text editor will open a blank file with the name you chose. That way, you do not change your containers. If the file exists, the text editor will open with the file. docker volume create -name src_volumeĭocker run -d -v src_volume:/home/my_user/src -name src_data_1 src_dataĭocker run -rm -it -v src_volume:/src fedeg/python-vim:latest You will be able to edit your data by mounting a Docker volume (src_volume) which will be shared by your data container (src_data) and the python-vim container. RUN chown -R my_user:my_user /home/my_user/src

RUN useradd -ms /bin/bash -home /home/my_user \ It assumes that the data you want to edit are in a data container built with the following Dockerfile: FROM debian:jessie You can also use a special container which will contain only the command you need: Vim.
