gpt4 book ai didi

docker - Docker bundle 和 docker-compose 有什么区别?

转载 作者:IT老高 更新时间:2023-10-28 12:39:31 24 4
gpt4 key购买 nike

Docker 1.12 引入了 bundle 的新概念。一种描述一组服务的新文件格式。

我的应用程序已经部署了 docker-compose。我的每个环境都有一个 docker-compose.yml,我可以使用 docker-compose up 快速部署我的应用程序。

据我了解this post , Docker bundles 只是内置 Docker 的一种新方式,它可以像 docker-compose 作为外部软件一样做同样的事情。

是这样吗?我可以从 Docker bundle 中得到什么是 docker-compose 所没有的?

最佳答案

A Dockerfile can be built into an image, and containers can be created from that image.

Similarly, a docker-compose.yml can be built into a distributed application bundle(DAB), and stacks can be created from that bundle.

In that sense, the bundle is a multi-services distributable image format.

来源:https://docs.docker.com/v18.03/compose/bundles/

关于docker - Docker bundle 和 docker-compose 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37929422/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com