如何中断Vscode中Docker容器的构建?
还没有找到其他人问这个问题,所以这可能有一个明显的答案,但是我是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 where 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
过程中单击左下角的容器按钮
时
当您在构建 关闭连接的选项,该连接杀死了构建。
关闭连接
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