Browse code

Merge pull request #11715 from duglin/DocCliEnvVars

Add some info about what environment variables are available

moxiegirl authored on 2015/03/25 23:29:27
Showing 1 changed files
... ...
@@ -17,6 +17,30 @@ or execute `docker help`:
17 17
 
18 18
       ...
19 19
 
20
+## Environment Variables
21
+
22
+For easy reference, the following list of environment variables are supported
23
+by the `docker` command line:
24
+
25
+* `DOCKER_CERT_PATH` The location of your authentication keys.
26
+* `DOCKER_DRIVER` The graph driver to use.
27
+* `DOCKER_HOST` Daemon socket to connect to.
28
+* `DOCKER_NOWARN_KERNEL_VERSION` Prevent warnings that your Linux kernel is unsuitable for Docker.
29
+* `DOCKER_RAMDISK` If set this will disable 'pivot_root'.
30
+* `DOCKER_TLS_VERIFY` When set Docker uses TLS and verifies the remote.
31
+* `DOCKER_TMPDIR` Location for temporary Docker files.
32
+
33
+Because Docker is developed using 'Go', you can also use any environment
34
+variables used by the 'Go' runtime. In particular, you may find these useful:
35
+
36
+* `HTTP_PROXY`
37
+* `HTTPS_PROXY`
38
+* `NO_PROXY`
39
+
40
+These Go environment variables are case-insensitive. See the
41
+[Go specification](http://golang.org/pkg/net/http/) for details on these
42
+variables.
43
+
20 44
 ## Help
21 45
 To list the help on any command just execute the command, followed by the `--help` option.
22 46
 
... ...
@@ -539,7 +563,7 @@ Instead of specifying a context, you can pass a single Dockerfile in the
539 539
 	docker build - < Dockerfile
540 540
 
541 541
 If you use STDIN or specify a `URL`, the system places the contents into a
542
-file called `Dockerfile`, and any `-f`, `--file` option is ignored. In this 
542
+file called `Dockerfile`, and any `-f`, `--file` option is ignored. In this
543 543
 scenario, there is no context.
544 544
 
545 545
 ### Return code
... ...
@@ -795,7 +819,7 @@ relative to the root of the container's filesystem.
795 795
 
796 796
     Usage: docker cp CONTAINER:PATH HOSTDIR|-
797 797
 
798
-    Copy files/folders from the PATH to the HOSTDIR. 
798
+    Copy files/folders from the PATH to the HOSTDIR.
799 799
 
800 800
 
801 801
 ## create
... ...
@@ -1530,7 +1554,7 @@ just a specific mapping:
1530 1530
       --before=""           Show only container created before Id or Name
1531 1531
       -f, --filter=[]       Filter output based on conditions provided
1532 1532
       -l, --latest=false    Show the latest created container, include non-running
1533
-      -n=-1                 Show n last created containers, include non-running 
1533
+      -n=-1                 Show n last created containers, include non-running
1534 1534
       --no-trunc=false      Don't truncate output
1535 1535
       -q, --quiet=false     Only display numeric IDs
1536 1536
       -s, --size=false      Display total file sizes
... ...
@@ -1950,7 +1974,7 @@ format:
1950 1950
     com.example.label2=another\ label
1951 1951
     com.example.label3
1952 1952
 
1953
-You can load multiple label-files by supplying multiple  `--label-file` flags. 
1953
+You can load multiple label-files by supplying multiple  `--label-file` flags.
1954 1954
 
1955 1955
 For additional information on working with labels, see [*Labels - custom
1956 1956
 metadata in Docker*](/userguide/labels-custom-metadata/) in the Docker User
... ...
@@ -2064,7 +2088,7 @@ application change:
2064 2064
 
2065 2065
 #### Restart Policies
2066 2066
 
2067
-Use Docker's `--restart` to specify a container's *restart policy*. A restart 
2067
+Use Docker's `--restart` to specify a container's *restart policy*. A restart
2068 2068
 policy controls whether the Docker daemon restarts a container after exit.
2069 2069
 Docker supports the following restart policies:
2070 2070
 
... ...
@@ -2079,7 +2103,7 @@ Docker supports the following restart policies:
2079 2079
     <tr>
2080 2080
       <td><strong>no</strong></td>
2081 2081
       <td>
2082
-        Do not automatically restart the container when it exits. This is the 
2082
+        Do not automatically restart the container when it exits. This is the
2083 2083
         default.
2084 2084
       </td>
2085 2085
     </tr>
... ...
@@ -2091,7 +2115,7 @@ Docker supports the following restart policies:
2091 2091
       </td>
2092 2092
       <td>
2093 2093
         Restart only if the container exits with a non-zero exit status.
2094
-        Optionally, limit the number of restart retries the Docker 
2094
+        Optionally, limit the number of restart retries the Docker
2095 2095
         daemon attempts.
2096 2096
       </td>
2097 2097
     </tr>
... ...
@@ -2111,7 +2135,7 @@ Docker supports the following restart policies:
2111 2111
 This will run the `redis` container with a restart policy of **always**
2112 2112
 so that if the container exits, Docker will restart it.
2113 2113
 
2114
-More detailed information on restart policies can be found in the 
2114
+More detailed information on restart policies can be found in the
2115 2115
 [Restart Policies (--restart)](/reference/run/#restart-policies-restart) section
2116 2116
 of the Docker run reference page.
2117 2117