Docker是git源代码控制的替代品吗? [英] Is Docker a replacement for git source control?

查看:330
本文介绍了Docker是git源代码控制的替代品吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Docker是否打算取代 git ,SVN或其他类似的源代码管理平台?

如果不是这两者如何整合?

解决方案

不,Docker并不打算取代任何SCM系统。当你构建一个版本化的图像时,这意味着你刚刚在图像中创建了一个应用程序的原子版本,然后可以创建容器......您将从源代码中获得最大可能来自存储库的内容。 p>

更重要的是,Docker正在与git或其他SCM系统共生。除了其他配置文件之外,您可能希望将 Dockerfile 保存在应用程序存储库中。您可能还希望在某些存储库中拥有 docker-compose.yml 文件以及其他自定义部署脚本或工具集等。


Is Docker in anyway intended to replace git, SVN or other similar source control platforms?

If not how do the two integrate?

解决方案

No, Docker is not intended to replace any of the SCM systems. When you build a versioned image, it means that you've just built an atomic version of the application inside a image that can then create containers... You will build it, from the source code obtained most probably from a repository.

More than that, Docker is working at symbiosis with git or other SCM system. You may want to keep the Dockerfile in the app repository besides other configuration files. You may also want to have the docker-compose.yml file in some repository alongside other custom deployment scripts or toolsets, etc.

这篇关于Docker是git源代码控制的替代品吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆