File Editing inside the Windows Container

Dear All,

I am running windows container inside windows docker desktop and trying to modify the files and copying files from host to container or mapping volume.

Nothing is working , kindly give any solution for this.

Thanks

I think the easiest and obvious solution would be copying the file out, editing it and copying it back to the container overriding the existing file inside. We don’t really edit files inside the containers, although occasionally we do it in Linux containers using editors like “nano” or “vi” but very often there is no editor in the container so we have to install it to quickly test something. IF you can install a command line editor on Windows, you can try to do it in the container too. Note that editing file in a container is not recommended unless you are just testing something or the file is on a volume so the change can be persistent.