running_examples.rst 574 B

1234567891011121314151617181920212223
  1. :title: Running the Examples
  2. :description: An overview on how to run the docker examples
  3. :keywords: docker, examples, how to
  4. .. _running_examples:
  5. Running the Examples
  6. --------------------
  7. All the examples assume your machine is running the docker daemon. To
  8. run the docker daemon in the background, simply type:
  9. .. code-block:: bash
  10. sudo docker -d &
  11. Now you can run docker in client mode: by defalt all commands will be
  12. forwarded to the ``docker`` daemon via a protected Unix socket, so you
  13. must run as root.
  14. .. code-block:: bash
  15. sudo docker help