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

added headers to examples linking back to running the examples page

This commit is contained in:
Ken Cochrane 2013-04-07 10:23:00 -04:00
parent 81ebf4fcf6
commit 6eb8a74ff9
5 changed files with 12 additions and 3 deletions

View file

@ -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

View file

@ -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.

View file

@ -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

View file

@ -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:**

View file

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