Browse code

added headers to examples linking back to running the examples page

Ken Cochrane authored on 2013/04/07 23:23:00
Showing 5 changed files
... ...
@@ -6,8 +6,10 @@
6 6
 
7 7
 Hello World
8 8
 ===========
9
-This is the most basic example available for using Docker. The example assumes you have Docker installed.
10 9
 
10
+.. include:: example_header.inc
11
+
12
+This is the most basic example available for using Docker. The example assumes you have Docker installed.
11 13
 
12 14
 Download the base container
13 15
 
... ...
@@ -6,6 +6,9 @@
6 6
 
7 7
 Hello World Daemon
8 8
 ==================
9
+
10
+.. include:: example_header.inc
11
+
9 12
 The most boring daemon ever written.
10 13
 
11 14
 This example assumes you have Docker installed and with the base image already imported ``docker pull base``.
... ...
@@ -18,7 +21,7 @@ out every second. It will continue to do this until we stop it.
18 18
 
19 19
     CONTAINER_ID=$(docker run -d base /bin/sh -c "while true; do echo hello world; sleep 1; done")
20 20
 
21
-We are going to run a simple hello world daemon in a new container made from the busybox daemon.
21
+We are going to run a simple hello world daemon in a new container made from the base image.
22 22
 
23 23
 - **"docker run -d "** run a command in a new container. We pass "-d" so it runs as a daemon.
24 24
 - **"base"** is the image we want to run the command inside of.
... ...
@@ -12,6 +12,7 @@ Contents:
12 12
 .. toctree::
13 13
    :maxdepth: 1
14 14
 
15
+   running_examples
15 16
    hello_world
16 17
    hello_world_daemon
17 18
    python_web_app
... ...
@@ -6,6 +6,9 @@
6 6
 
7 7
 Building a python web app
8 8
 =========================
9
+
10
+.. include:: example_header.inc
11
+
9 12
 The goal of this example is to show you how you can author your own docker images using a parent image, making changes to it, and then saving the results as a new image. We will do that by making a simple hello flask web application image.
10 13
 
11 14
 **Steps:**
... ...
@@ -7,7 +7,7 @@
7 7
 Create an ssh daemon service
8 8
 ============================
9 9
 
10
-
10
+.. include:: example_header.inc
11 11
 
12 12
 
13 13
 **Video:**