如何中断Vscode中Docker容器的构建?

发布于 2025-01-31 10:19:06 字数 561 浏览 3 评论 0原文

还没有找到其他人问这个问题,所以这可能有一个明显的答案,但是我是Web开发的新手,并且还没有弄清楚(因此,

如果Vscode无法完成构建容器因为Dockerfile构建代码期望与之交互,所以一个人如何结束构建过程?

我尝试单击 “在此处输入图像描述” 在其中说“打开远程...”以及在VSCODE的消息框上“启动Dev容器(显示日志)”,没有任何选择来结束该过程。 (我看到了!)

重新启动VScode只是重新启动了容器构建过程,并在文档中搜索了“停止 /结束 /中断打开远程容器Docker vscode”一无所有,所以我不得不想知道:

有什么东西很明显我缺少吗?

最后,我关闭了VSCODE并移动了文件,以便在重新打开VSCODE时崩溃(我可以编辑文件并成功地开始构建过程),但这似乎是一个沉重的解决方案。

任何见解 /建议欢迎!谢谢你!

Haven't found anyone else asking this question so this might have an obvious answer, but I'm new to web development and haven't been able to figure out yet (so here goes nothing)

If VSCode is unable to finish building a container because the Dockerfile build code is expecting an interaction, how does one end the build process??

I tried clicking on the enter image description herewhere it said "Opening remote..." as well as on VSCode's message box "Starting dev container (show log)" and there was no option to end the process. (that I saw!)

Restarting VSCode simply restarted the container building process, and searches in the documentation and on Google for "stop / end / interrupt opening remote container docker vscode" yielded nothing, so I'm forced to wonder:

Is there something obvious I'm missing?

In the end, I closed VSCode and moved the files so that the process crashed upon reopening VSCode (and I could edit the files and start the building process again successfully), but that seemed like a heavy-handed solution.

Any insights / advice welcome! Thank you!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

妳是的陽光 2025-02-07 10:19:06

过程中单击左下角的容器按钮

当您在构建 关闭连接的选项,该连接杀死了构建。

关闭连接

When you click the container button on the left bottom corner during the build

container build button

it gives this option to close the connection, which kills the build.

close the connection

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