我最近一直在研究Docker和容器,并想知道是否有可能直接在容器内进行开发?如果是,现有的工具有哪些?
工作流程示例为:
Suppose I need Java8, Solr, and MySQL for my project. I create a container with all three of those components. Then, I create the project inside the container and develop there directly – somewhat similar to a virtual machine but, a scaled-down version.
最佳答案
如果您使用的是 vscode,,则现在可以在容器内部开发。
现在,vscode中有一个很棒的新功能,该功能使我们可以将我们连接到我们的容器,实际上,我们可以在容器中安装vscode扩展,在容器中打开终端甚至进行远程调试。
您可以在下一篇文章“在容器中开发” https://code.visualstudio.com/docs/remote/containers中了解更多信息。
关于docker - 直接在容器内进行开发,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48838237/