mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
- Included the sudo alternative as an example_header
This commit is contained in:
parent
304d39cc50
commit
eba3c36b38
2 changed files with 7 additions and 2 deletions
|
@ -2,3 +2,9 @@
|
|||
.. note::
|
||||
|
||||
This example assumes you have Docker running in daemon mode. For more information please see :ref:`running_examples`
|
||||
|
||||
.. note::
|
||||
|
||||
These examples use ``sudo`` before each ``docker`` command you could also
|
||||
add your current ``<username>`` to docker's group and get rid of ``sudo``.
|
||||
You just need to type: ``$ sudo usermod -a -G docker <username>``
|
||||
|
|
|
@ -21,8 +21,7 @@ smooth, but gives you a good idea.
|
|||
daemon is unprotected and available via a TCP port. When you run
|
||||
through the same steps in a newer version of Docker, you will
|
||||
need to add ``sudo`` in front of each ``docker`` command in order
|
||||
to reach the daemon over its protected Unix socket or you can add
|
||||
your user to docker's group: ``sudo usermod -a -G docker <user>``.
|
||||
to reach the daemon over its protected Unix socket.
|
||||
|
||||
.. raw:: html
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue