2013-04-07 10:21:08 -04:00
|
|
|
:title: Running the Examples
|
|
|
|
:description: An overview on how to run the docker examples
|
|
|
|
:keywords: docker, examples, how to
|
|
|
|
|
|
|
|
.. _running_examples:
|
|
|
|
|
2013-06-02 01:03:12 -04:00
|
|
|
Running the Examples
|
2013-04-07 10:21:08 -04:00
|
|
|
--------------------
|
|
|
|
|
2013-08-13 21:05:35 -04:00
|
|
|
All the examples assume your machine is running the docker daemon. To
|
|
|
|
run the docker daemon in the background, simply type:
|
2013-04-07 10:21:08 -04:00
|
|
|
|
2013-04-08 23:10:47 -04:00
|
|
|
.. code-block:: bash
|
2013-04-07 10:21:08 -04:00
|
|
|
|
2013-04-08 23:10:47 -04:00
|
|
|
sudo docker -d &
|
|
|
|
|
2013-08-13 21:05:35 -04:00
|
|
|
Now you can run docker in client mode: by defalt all commands will be
|
|
|
|
forwarded to the ``docker`` daemon via a protected Unix socket, so you
|
|
|
|
must run as root.
|
2013-04-07 10:21:08 -04:00
|
|
|
|
2013-04-08 23:10:47 -04:00
|
|
|
.. code-block:: bash
|
2013-04-07 10:21:08 -04:00
|
|
|
|
2013-08-13 21:05:35 -04:00
|
|
|
sudo docker help
|