Editing Files inside of a Docker Container

后端 未结 2 1106
有刺的猬
有刺的猬 2021-02-07 20:55

How can I edit the config files that are inside of a docker container that has been downloaded on the host?

I am using this tutorial but I am not sure where to find and

2条回答
  •  滥情空心
    2021-02-07 21:38

    I was running into the same issue and found a nice way to handle this. Using VS Code and the docker extension, get the container running. In the list of Containers, right click on the one you want to edit. Choose: Attach Visual Studio Code.

    Another VS Code instance should open up that is directly attached to the container. Click on the Open Folder and navigate to the file you wish to edit. Pour a nice stout, chill for a moment, then get back to coding. :)

提交回复
热议问题