Skip to content

Commit

Permalink
added headers to examples linking back to running the examples page
Browse files Browse the repository at this point in the history
  • Loading branch information
kencochrane committed Apr 7, 2013
1 parent 81ebf4f commit 6eb8a74
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/sources/examples/hello_world.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@

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

Expand Down
5 changes: 4 additions & 1 deletion docs/sources/examples/hello_world_daemon.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

Hello World Daemon
==================

.. include:: example_header.inc

The most boring daemon ever written.

This example assumes you have Docker installed and with the base image already imported ``docker pull base``.
Expand All @@ -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")
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.
- **"base"** is the image we want to run the command inside of.
Expand Down
1 change: 1 addition & 0 deletions docs/sources/examples/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Contents:
.. toctree::
:maxdepth: 1

running_examples
hello_world
hello_world_daemon
python_web_app
Expand Down
3 changes: 3 additions & 0 deletions docs/sources/examples/python_web_app.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

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.

**Steps:**
Expand Down
2 changes: 1 addition & 1 deletion docs/sources/examples/running_ssh_service.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Create an ssh daemon service
============================


.. include:: example_header.inc


**Video:**
Expand Down

0 comments on commit 6eb8a74

Please sign in to comment.