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-01 22:03:12 -07:00
|
|
|
Running the Examples
|
2013-04-07 10:21:08 -04:00
|
|
|
--------------------
|
|
|
|
|
2013-04-18 22:22:00 -07: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 20:10:47 -07:00
|
|
|
.. code-block:: bash
|
2013-04-07 10:21:08 -04:00
|
|
|
|
2013-04-08 20:10:47 -07:00
|
|
|
sudo docker -d &
|
|
|
|
|
2013-04-18 22:22:00 -07:00
|
|
|
Now you can run docker in client mode: all commands will be forwarded to the docker daemon, so the client
|
|
|
|
can run from any account.
|
2013-04-07 10:21:08 -04:00
|
|
|
|
2013-04-08 20:10:47 -07:00
|
|
|
.. code-block:: bash
|
2013-04-07 10:21:08 -04:00
|
|
|
|
2013-04-18 22:22:00 -07:00
|
|
|
# now you can run docker commands from any account.
|
|
|
|
docker help
|