Visual Studio Code存储特定Docker图像的扩展名和其他设置
我有以下“问题”。假设我设置了一个带有节点的Docker容器,并希望将其用作开发容器。我通过集装箱的扩展“远程 - 容器”在Visual Studio代码中连接并创建一个工作文件夹,分别安装了一些扩展名,例如漂亮。
如果我现在删除此容器并创建一个具有相同图像的新容器,则将自动重新安装旧容器的所有扩展程序,并且Visual Studio Code也尝试连接到旧工作文件夹,这可能根本不可用。
谁知道在删除容器后可以将这些信息存储在何处,以便我可以将其删除。我在MacOS上工作
I have the following "problem". Let's say I set up a Docker container with Node on it and want to use it as a development container. I connect in Visual Studio Code via the extension "Remote - Containers" with the container and create a working folder, respectively I install some extensions e.g. Prettier.
If I now delete this container and create a new one with the same image, all extensions of the old container are automatically reinstalled and Visual Studio Code also tries to connect to the old working folder, which may not be available at all.
Does anyone know where this information is stored regarding the image so that I can delete it after I delete a container. I work on macOS
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现了与我的问题有关的文件。它们位于MACOS下的以下路径中:
〜/Library/Application支持/Code/user/GlobalStorage/MS-VSCODE-REMOTE.MEMOTE-CONTAINERS/IMAGECONFIGS
.JSON文件包含有关工作区文件夹和已安装的扩展程序的信息。
I have found the files related to my problem. They are located in the following path under macOS:
~/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/imageConfigs
The .json files contain information about the workspaces folder and the installed extensions.