Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the different between Docker bundles and docker-compose?

Tags:

Docker 1.12 introduced the new concept of bundles. A new file format to describe a set of services.

My application is already deployed with docker-compose. I have a docker-compose.yml for each of my environments and I can quickly deploy my app just with a docker-compose up.

From what I understand of this post, Docker bundles is just a new way built-in Docker to do the same thing as docker-compose does as an external software.

Is that it ? What can I expect from Docker bundles that I won't have with docker-compose ?

like image 284
dynamic_cast Avatar asked Jun 20 '16 18:06

dynamic_cast


People also ask

What is the difference between docker and docker-compose?

The key difference between docker run versus docker-compose is that docker run is entirely command line based, while docker-compose reads configuration data from a YAML file. The second major difference is that docker run can only start one container at a time, while docker-compose will configure and run multiple.

What is a container bundle?

Container Format The definition of a bundle is only concerned with how a container, and its configuration data, are stored on a local filesystem so that it can be consumed by a compliant runtime. A Standard Container bundle contains all the information needed to load and run a container.

What is a docker-compose?

Docker Compose is a tool that was developed to help define and share multi-container applications. With Compose, we can create a YAML file to define the services and with a single command, can spin everything up or tear it all down.

What are the three main types of docker components?

Docker follows Client-Server architecture, which includes the three main components that are Docker Client, Docker Host, and Docker Registry.


2 Answers

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.

Source: https://docs.docker.com/v18.03/compose/bundles/

like image 59
Harish Anchu Avatar answered Oct 20 '22 05:10

Harish Anchu


The main different is that docker bundle is oriented to be used this the new server side orchestration features it use the docker service internal flow.

docker compose has all logics client side because it the client (compose) that do different requests at the server (daemon).

For docker bundle all flow is managed by the engine.

like image 34
GianArb Avatar answered Oct 20 '22 07:10

GianArb