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

docs: add standard 'check your docker install' paragraph to the 'hello world' examples.

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
This commit is contained in:
Solomon Hykes 2014-01-21 02:58:04 +00:00
parent cf5504eed5
commit 76eee50a67

View file

@ -9,25 +9,23 @@ Hello World
.. _running_examples: .. _running_examples:
Running the Examples Check your docker install
==================== -------------------------
All the examples assume your machine is running the ``docker`` daemon. To This guide assumes you have a working installation of Docker. To check
run the ``docker`` daemon in the background, simply type: your docker install, run the following command:
.. code-block:: bash .. code-block:: bash
sudo docker -d & # Check that you have a working install
docker info
Now you can run Docker in client mode: by default all commands will be If you get ``docker: command not found`` or something like
forwarded to the ``docker`` daemon via a protected Unix socket, so you ``/var/lib/docker/repositories: permission denied`` you may have an incomplete
must run as the ``root`` or via the ``sudo`` command. docker installation or insufficient privileges to access docker on your machine.
.. code-block:: bash Please refer to :ref:`installation_list` for installation instructions.
sudo docker help
----
.. _hello_world: .. _hello_world:
@ -88,9 +86,7 @@ Hello World Daemon
And now for the most boring daemon ever written! And now for the most boring daemon ever written!
This example assumes you have Docker installed and the Ubuntu We will use the Ubuntu image to run a simple hello world daemon that will just print hello
image already imported with ``docker pull ubuntu``. We will use the Ubuntu
image to run a simple hello world daemon that will just print hello
world to standard out every second. It will continue to do this until world to standard out every second. It will continue to do this until
we stop it. we stop it.