From d8f4b733f243a3da6cf5571f44b94b7109f326c4 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Fri, 22 Nov 2013 14:46:07 -0800 Subject: [PATCH] Add daemon docs with selecting graph driver --- docs/Dockerfile | 2 +- docs/sources/commandline/cli.rst | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/docs/Dockerfile b/docs/Dockerfile index d3418ee968..53a5dfba9c 100644 --- a/docs/Dockerfile +++ b/docs/Dockerfile @@ -9,7 +9,7 @@ run apt-get install -y python-setuptools make run easy_install pip #from docs/requirements.txt, but here to increase cacheability run pip install Sphinx==1.1.3 -run pip install sphinxcontrib-httpdomain==1.1.8 +run pip install sphinxcontrib-httpdomain==1.1.9 add . /docs run cd /docs; make docs diff --git a/docs/sources/commandline/cli.rst b/docs/sources/commandline/cli.rst index 9875b5ded9..395f3f4c54 100644 --- a/docs/sources/commandline/cli.rst +++ b/docs/sources/commandline/cli.rst @@ -18,6 +18,38 @@ To list available commands, either run ``docker`` with no parameters or execute ... +.. _cli_daemon: + +``daemon`` +---------- + +:: + + Usage of docker: + -D=false: Enable debug mode + -H=[unix:///var/run/docker.sock]: Multiple tcp://host:port or unix://path/to/socket to bind in daemon mode, single connection otherwise + -api-enable-cors=false: Enable CORS headers in the remote API + -b="": Attach containers to a pre-existing network bridge; use 'none' to disable container networking + -d=false: Enable daemon mode + -dns="": Force docker to use specific DNS servers + -g="/var/lib/docker": Path to use as the root of the docker runtime + -icc=true: Enable inter-container communication + -ip="0.0.0.0": Default IP address to use when binding container ports + -iptables=true: Disable docker's addition of iptables rules + -p="/var/run/docker.pid": Path to use for daemon PID file + -r=true: Restart previously running containers + -s="": Force the docker runtime to use a specific storage driver + -v=false: Print version information and quit + +The docker daemon is the persistent process that manages containers. Docker uses the same binary for both the +daemon and client. To run the daemon you provide the ``-d`` flag. + +To force docker to use devicemapper as the storage driver, use ``docker -d -s devicemapper`` + +To set the dns server for all docker containers, use ``docker -d -dns 8.8.8.8`` + +To run the daemon with debug output, use ``docker -d -D`` + .. _cli_attach: ``attach``