From cb9ecd914606c82286d1da22c976af4a40eff112 Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Mon, 25 Jul 2016 12:37:56 -0700 Subject: [PATCH] Add a bundlefile example in the documentation There is no example bundlefile in the documentation so a bundlefile example has been added. This should help in case user don't want to search inside the source code. Signed-off-by: Yong Tang --- experimental/docker-stacks-and-bundles.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/experimental/docker-stacks-and-bundles.md b/experimental/docker-stacks-and-bundles.md index 6ca37a4934..4749a73e5b 100644 --- a/experimental/docker-stacks-and-bundles.md +++ b/experimental/docker-stacks-and-bundles.md @@ -182,3 +182,21 @@ A service has the following fields: +The following is an example of bundlefile with two services: + +```json +{ + "Version": "0.1", + "Services": { + "redis": { + "Image": "redis@sha256:4b24131101fa0117bcaa18ac37055fffd9176aa1a240392bb8ea85e0be50f2ce", + "Networks": ["default"] + }, + "web": { + "Image": "dockercloud/hello-world@sha256:fe79a2cfbd17eefc344fb8419420808df95a1e22d93b7f621a7399fd1e9dca1d", + "Networks": ["default"], + "User": "web" + } + } +} +```