mirror of
https://github.com/docker/cli.git
synced 2026-09-01 10:05:51 -05:00
Upstream-commit: 2935ca7ee2879723c786b86ee87cc1be26dad7b8 Component: engine
23 lines
600 B
ReStructuredText
23 lines
600 B
ReStructuredText
:title: Running the Examples
|
|
:description: An overview on how to run the docker examples
|
|
:keywords: docker, examples, how to
|
|
|
|
.. _running_examples:
|
|
|
|
Running the Examples
|
|
--------------------
|
|
|
|
All the examples assume your machine is running the docker daemon. To run the docker daemon in the background, simply type:
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo docker -d &
|
|
|
|
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.
|
|
|
|
.. code-block:: bash
|
|
|
|
# now you can run docker commands from any account.
|
|
docker help
|