Browse Source

added headers to examples linking back to running the examples page

Ken Cochrane 12 years ago
parent
commit
6eb8a74ff9

+ 3 - 1
docs/sources/examples/hello_world.rst

@@ -6,8 +6,10 @@
 
 
 Hello World
 Hello World
 ===========
 ===========
-This is the most basic example available for using Docker. The example assumes you have Docker installed.
 
 
+.. include:: example_header.inc
+
+This is the most basic example available for using Docker. The example assumes you have Docker installed.
 
 
 Download the base container
 Download the base container
 
 

+ 4 - 1
docs/sources/examples/hello_world_daemon.rst

@@ -6,6 +6,9 @@
 
 
 Hello World Daemon
 Hello World Daemon
 ==================
 ==================
+
+.. include:: example_header.inc
+
 The most boring daemon ever written.
 The most boring daemon ever written.
 
 
 This example assumes you have Docker installed and with the base image already imported ``docker pull base``.
 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.
 
 
     CONTAINER_ID=$(docker run -d base /bin/sh -c "while true; do echo hello world; sleep 1; done")
     CONTAINER_ID=$(docker run -d base /bin/sh -c "while true; do echo hello world; sleep 1; done")
 
 
-We are going to run a simple hello world daemon in a new container made from the busybox daemon.
+We are going to run a simple hello world daemon in a new container made from the base image.
 
 
 - **"docker run -d "** run a command in a new container. We pass "-d" so it runs as a daemon.
 - **"docker run -d "** run a command in a new container. We pass "-d" so it runs as a daemon.
 - **"base"** is the image we want to run the command inside of.
 - **"base"** is the image we want to run the command inside of.

+ 1 - 0
docs/sources/examples/index.rst

@@ -12,6 +12,7 @@ Contents:
 .. toctree::
 .. toctree::
    :maxdepth: 1
    :maxdepth: 1
 
 
+   running_examples
    hello_world
    hello_world
    hello_world_daemon
    hello_world_daemon
    python_web_app
    python_web_app

+ 3 - 0
docs/sources/examples/python_web_app.rst

@@ -6,6 +6,9 @@
 
 
 Building a python web app
 Building a python web app
 =========================
 =========================
+
+.. include:: example_header.inc
+
 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.
 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.
 
 
 **Steps:**
 **Steps:**

+ 1 - 1
docs/sources/examples/running_ssh_service.rst

@@ -7,7 +7,7 @@
 Create an ssh daemon service
 Create an ssh daemon service
 ============================
 ============================
 
 
-
+.. include:: example_header.inc
 
 
 
 
 **Video:**
 **Video:**