|
@@ -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:
|
|
.. _cli_attach:
|
|
|
|
|
|
``attach``
|
|
``attach``
|