Visual Studio Code存储特定Docker图像的扩展名和其他设置

发布于 2025-02-12 01:46:20 字数 261 浏览 1 评论 0原文

我有以下“问题”。假设我设置了一个带有节点的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼角的笑意。 2025-02-19 01:46:20

我发现了与我的问题有关的文件。它们位于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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文