mirror of https://github.com/docker/docs.git
Merge pull request #1569 from TylerBrock/patch-1
Add instructions for creating and using the docker group
This commit is contained in:
commit
09a08e0a9f
|
@ -50,6 +50,17 @@ the daemon starts. The ``docker`` daemon must always run as root, but
|
||||||
if you run the ``docker`` client as a user in the *docker* group then
|
if you run the ``docker`` client as a user in the *docker* group then
|
||||||
you don't need to add ``sudo`` to all the client commands.
|
you don't need to add ``sudo`` to all the client commands.
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
# Add the docker group
|
||||||
|
sudo groupadd docker
|
||||||
|
|
||||||
|
# Add the ubuntu user to the docker group
|
||||||
|
sudo gpasswd -a ubuntu docker
|
||||||
|
|
||||||
|
# Restart the docker daemon
|
||||||
|
sudo service docker restart
|
||||||
|
|
||||||
Bind Docker to another host/port or a Unix socket
|
Bind Docker to another host/port or a Unix socket
|
||||||
-------------------------------------------------
|
-------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue