1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fix markdown formatting for experimental

- don't indent code-blocks that use fences
- fixed some formatting
- wrapped long lines to 80-chars
- removed stray empty lines

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2016-06-20 00:12:48 -07:00
parent 2cb050cde3
commit a92f6551c9
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -2,12 +2,17 @@
## Overview ## Overview
Docker Stacks and Distributed Application Bundles are experimental features introduced in Docker 1.12 and Docker Compose 1.8, alongside the concept of swarm mode, and Nodes and Services in the Engine API. Docker Stacks and Distributed Application Bundles are experimental features
introduced in Docker 1.12 and Docker Compose 1.8, alongside the concept of
swarm mode, and Nodes and Services in the Engine API.
A Dockerfile can be built into an image, and containers can be created from that A Dockerfile can be built into an image, and containers can be created from
image. Similarly, a docker-compose.yml can be built into a **distributed application bundle**, and **stacks** can be created from that bundle. In that sense, the bundle is a multi-services distributable image format. that image. Similarly, a docker-compose.yml can be built into a **distributed
application bundle**, and **stacks** can be created from that bundle. In that
sense, the bundle is a multi-services distributable image format.
As of Docker 1.12 and Compose 1.8, the features are experimental. Neither Docker Engine nor the Docker Registry support distribution of bundles. As of Docker 1.12 and Compose 1.8, the features are experimental. Neither
Docker Engine nor the Docker Registry support distribution of bundles.
## Producing a bundle ## Producing a bundle
@ -95,11 +100,15 @@ Tasks are managed using the `docker stack` command:
## Bundle file format ## Bundle file format
Distributed application bundles are described in a JSON format. When bundles are persisted as files, the file extension is `.dab` (Docker 1.12RC2 tools use `.dsb` for the file extension—this will be updated in the next release client). Distributed application bundles are described in a JSON format. When bundles
are persisted as files, the file extension is `.dab` (Docker 1.12RC2 tools use
`.dsb` for the file extension—this will be updated in the next release client).
A bundle has two top-level fields: `version` and `services`. The version used by Docker 1.12 tools is `0.1`. A bundle has two top-level fields: `version` and `services`. The version used
by Docker 1.12 tools is `0.1`.
`services` in the bundle are the services that comprise the app. They correspond to the new `Service` object introduced in the 1.12 Docker Engine API. `services` in the bundle are the services that comprise the app. They
correspond to the new `Service` object introduced in the 1.12 Docker Engine API.
A service has the following fields: A service has the following fields:
@ -108,42 +117,44 @@ A service has the following fields:
Image (required) <code>string</code> Image (required) <code>string</code>
</dt> </dt>
<dd> <dd>
The image that the service will run. Docker images should be referenced with full content hash to fully specify the deployment artifact for the service. Example: <code>postgres@sha256:f76245b04ddbcebab5bb6c28e76947f49222c99fec4aadb0bb1c24821a9e83ef</code> The image that the service will run. Docker images should be referenced
with full content hash to fully specify the deployment artifact for the
service. Example:
<code>postgres@sha256:f76245b04ddbcebab5bb6c28e76947f49222c99fec4aadb0bb
1c24821a 9e83ef</code>
</dd> </dd>
<dt> <dt>
Command <code>[]string</code> Command <code>[]string</code>
</dt> </dt>
<dd> <dd>
Command to run in service containers. Command to run in service containers.
</dd> </dd>
<dt> <dt>
Args <code>[]string</code> Args <code>[]string</code>
</dt> </dt>
<dd> <dd>
Arguments passed to the service containers. Arguments passed to the service containers.
</dd> </dd>
<dt> <dt>
Env <code>[]string</code> Env <code>[]string</code>
</dt> </dt>
<dd> <dd>
Environment variables. Environment variables.
</dd> </dd>
<dt> <dt>
Labels <code>map[string]string</code> Labels <code>map[string]string</code>
</dt> </dt>
<dd> <dd>
Labels used for setting meta data on services. Labels used for setting meta data on services.
</dd> </dd>
<dt> <dt>
Ports <code>[]Port</code> Ports <code>[]Port</code>
</dt> </dt>
<dd> <dd>
Service ports (composed of `Port` (`int`) and `Protocol` (`string`). A service description can only specify the container port to be exposed. These ports can be mapped on runtime hosts at the operator's discretion. Service ports (composed of <code>Port</code> (<code>int</code>) and
<code>Protocol</code> (<code>string</code>). A service description can
only specify the container port to be exposed. These ports can be
mapped on runtime hosts at the operator's discretion.
</dd> </dd>
<dt> <dt>
@ -157,14 +168,15 @@ The image that the service will run. Docker images should be referenced with ful
User <code>string</code> User <code>string</code>
</dt> </dt>
<dd> <dd>
Username or UID (format: <name|uid>[:<group|gid>]). Username or UID (format: <code>&lt;name|uid&gt;[:&lt;group|gid&gt;]</code>).
</dd> </dd>
<dt> <dt>
Networks <code>[]string</code> Networks <code>[]string</code>
</dt> </dt>
<dd> <dd>
Networks that the service containers should be connected to. An entity deploying a bundle should create networks as needed. Networks that the service containers should be connected to. An entity
deploying a bundle should create networks as needed.
</dd> </dd>
</dl> </dl>