Browse code

add docs

Signed-off-by: Victor Vieux <vieux@docker.com>

Victor Vieux authored on 2014/11/18 04:26:39
Showing 3 changed files
... ...
@@ -49,8 +49,9 @@ You can still call an old version of the API using
49 49
 `GET /info`
50 50
 
51 51
 **New!**
52
-`info` now returns the number of CPUs available on the machine (`NCPU`) and
53
-total memory available (`MemTotal`).
52
+`info` now returns the number of CPUs available on the machine (`NCPU`),
53
+total memory available (`MemTotal`), the short hostname (`Hostname`). and
54
+the ID (`ID`).
54 55
 
55 56
 `POST /containers/create`
56 57
 
... ...
@@ -1220,6 +1220,8 @@ Display system-wide information
1220 1220
              "KernelVersion":"3.12.0-1-amd64"
1221 1221
              "NCPU":1,
1222 1222
              "MemTotal":2099236864,
1223
+             "Hostname":"prod-server-42",
1224
+             "ID":"7TRN:IPZB:QYBB:VPBQ:UMPP:KARE:6ZNR:XE6T:7EWV:PKF4:ZOJD:TPYS"
1223 1225
              "Debug":false,
1224 1226
              "NFd": 11,
1225 1227
              "NGoroutines":21,
... ...
@@ -856,6 +856,8 @@ For example:
856 856
     Kernel Version: 3.13.0-24-generic
857 857
     Operating System: Ubuntu 14.04 LTS
858 858
     CPUs: 1
859
+    Hostname: prod-server-42
860
+    ID: 7TRN:IPZB:QYBB:VPBQ:UMPP:KARE:6ZNR:XE6T:7EWV:PKF4:ZOJD:TPYS
859 861
     Total Memory: 2 GiB
860 862
     Debug mode (server): false
861 863
     Debug mode (client): true