-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/docs'
- Loading branch information
Showing
37 changed files
with
190 additions
and
398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
:title: Hello world example | ||
:description: A simple hello world example with Docker | ||
:keywords: docker, example, hello world | ||
|
||
.. _hello_world: | ||
|
||
Hello World | ||
=========== | ||
This is the most basic example available for using docker | ||
|
||
This example assumes you have Docker installed. | ||
|
||
|
||
Download the base container | ||
|
||
.. code-block:: bash | ||
# Download a base image | ||
docker pull base | ||
The *base* image is a minimal *ubuntu* based container, alternatively you can select *busybox*, a bare | ||
minimal linux system. The images are retrieved from the docker repository. | ||
|
||
|
||
.. code-block:: bash | ||
#run a simple echo command, that will echo hello world back to the console over standard out. | ||
docker run base /bin/echo hello world | ||
**Explanation:** | ||
|
||
- **"docker run"** run a command in a new container | ||
- **"base"** is the image we want to run the command inside of. | ||
- **"/bin/echo"** is the command we want to run in the container | ||
- **"hello world"** is the input for the echo command | ||
|
||
|
||
|
||
**Video:** | ||
|
||
See the example in action | ||
|
||
.. raw:: html | ||
|
||
<div style="margin-top:10px;"> | ||
<iframe width="560" height="350" src="http://ascii.io/a/2603/raw" frameborder="0"></iframe> | ||
</div> | ||
|
||
|
||
Continue to the :ref:`hello_world_daemon` example. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
Guides index | ||
============ | ||
:title: docker documentation | ||
:description: docker documentation | ||
:keywords: | ||
|
||
Contents: | ||
Documentation | ||
============= | ||
|
||
This documentation has the following resources: | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
documentation/concepts/index | ||
documentation/installation/index | ||
documentation/examples/index | ||
documentation/contributing/index | ||
documentation/commandline/index | ||
documentation/faq | ||
|
||
The source page should also have some content. Otherwise it is just an index. | ||
concepts/index | ||
installation/index | ||
examples/index | ||
contributing/index | ||
commandline/index | ||
faq |
Oops, something went wrong.