Docker文件或注册表?哪个是分发的首选策略? [英] Dockerfile or Registry? Which is the preferred strategy for distribution?
问题描述
如果您使用Dockerfile进行服务,那么您最好使用Dockerfile构建映像并将其推送到注册表,而不是分发Dockerfile(和repo)以供人们构建其图像? p>
有什么用例支持Dockerfile + repo分发,哪些用例有利于注册表分发?
我想象同样的问题可以应用于源代码与二进制包安装。
推送到中央共享注册表允许您冻结和认证一个特定的配置,然后将其提供给组织中的其他人。
If you are making a service with a Dockerfile is it preferred for you to build an image with the Dockerfile and push it to the registry -- rather than distribute the Dockerfile (and repo) for people to build their images?
What use cases favour Dockerfile+repo distribution, and what use case favour Registry distribution?
I'd imagine the same question could be applied to source code versus binary package installs.
Pushing to a central shared registry allows you to freeze and certify a particular configuration and then make it available to others in your organisation.
这篇关于Docker文件或注册表?哪个是分发的首选策略?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!