You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 61e9f0c
Browse filesBrowse the repository at this point in the historyBrowse files
> document in the [docker/docker repo](https://github.com/docker/docker).
10
+
> document in the [docker/docker repo](https://github.com/docker/docker). It's been updated to accurately reflect newer releases.
11
11
12
12
## Overview
13
13
14
-
Docker Stacks and Distributed Application Bundles are experimental features
15
-
introduced in Docker 1.12 and Docker Compose 1.8, alongside the concept of
16
-
swarm mode, and Nodes and Services in the Engine API.
17
-
18
14
A Dockerfile can be built into an image, and containers can be created from
19
15
that image. Similarly, a `docker-compose.yml` can be built into a **distributed
20
16
application bundle**, and **stacks** can be created from that bundle. In that
21
17
sense, the bundle is a multi-services distributable image format.
22
18
23
-
As of Docker 1.12 and Compose 1.8, the features are experimental. Neither
24
-
Docker Engine nor the Docker Registry support distribution of bundles.
19
+
Docker Stacks and Distributed Application Bundles started as experimental
20
+
features introduced in Docker 1.12 and Docker Compose 1.8, alongside the concept
21
+
of swarm mode, and nodes and services in the Engine API. Neither Docker Engine
22
+
nor the Docker Registry support distribution of bundles, and the concept of a
23
+
`bundle` is not the emphasis for new releases going forward.
24
+
25
+
However, [swarm mode](/engine/swarm/index.md), multi-service applications, and
26
+
stack files now are fully supported. A stack file is a particular type of
* The `--compose-file` option specifies the path to our stack file. In this case, we assume it's in the current directory so we simply name the stack file: `docker-stack.yml`.
64
+
65
+
* For the example, we name this app `vote`, but we could name it anything we want.
Copy file name to clipboardExpand all lines: engine/getstarted-voting-app/index.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -219,12 +219,13 @@ volumes:
219
219
220
220
## Docker stacks and services
221
221
222
-
To deploy the voting app, we will run the `docker stack deploy` command with
223
-
this `docker-stack.yml` file to pull the referenced images and launch the
224
-
services in a swarm. This allows us to run the application across multiple
225
-
servers, and use swarm mode for load balancing and performance. Rather than
226
-
thinking about running individual containers, we can start to model deployments
227
-
as application stacks and services.
222
+
To deploy the voting app, we will run the [`docker stack
223
+
deploy`](/engine/reference/commandline/stack_deploy.md) command with appropriate
224
+
options using this `docker-stack.yml` file to pull the referenced images and
225
+
launch the services in a swarm. This allows us to run the application across
226
+
multiple servers, and use swarm mode for load balancing and performance. Rather
227
+
than thinking about running individual containers, we can start to model
228
+
deployments as application stacks and services.
228
229
229
230
If you are interested in learning more about new Compose version 3.x features, Docker Engine 1.13.x, and swarm mode integration, check out the [list of resources](customize-app.md#resources) at the end of this tutorial.
0 commit comments