mirror of
https://github.com/docker/cli.git
synced 2026-09-24 07:25:07 -05:00
add daemon labels
Signed-off-by: Victor Vieux <vieux@docker.com> Upstream-commit: 2fe36baa0a39840e64f1dc585af41b5ee0ed6df5 Component: engine
This commit is contained in:
@@ -50,7 +50,8 @@ You can still call an old version of the API using
|
||||
|
||||
**New!**
|
||||
`info` now returns the number of CPUs available on the machine (`NCPU`),
|
||||
total memory available (`MemTotal`), a user-friendly name describing the running Docker daemon (`Name`), and a unique ID identifying the daemon (`ID`).
|
||||
total memory available (`MemTotal`), a user-friendly name describing the running Docker daemon (`Name`), a unique ID identifying the daemon (`ID`), and
|
||||
a list of daemon labels (`Labels`).
|
||||
|
||||
`POST /containers/create`
|
||||
|
||||
|
||||
@@ -1230,7 +1230,8 @@ Display system-wide information
|
||||
"IndexServerAddress":["https://index.docker.io/v1/"],
|
||||
"MemoryLimit":true,
|
||||
"SwapLimit":false,
|
||||
"IPv4Forwarding":true
|
||||
"IPv4Forwarding":true,
|
||||
"Labels":["storage=ssd"]
|
||||
}
|
||||
|
||||
Status Codes:
|
||||
|
||||
@@ -76,7 +76,7 @@ expect an integer, and they can only be specified once.
|
||||
--ip-masq=true Enable IP masquerading for bridge's IP range
|
||||
--iptables=true Enable Docker's addition of iptables rules
|
||||
-l, --log-level="info" Set the logging level
|
||||
|
||||
--label=[] Set key=values labels to the daemon (displayed in `docker info`)
|
||||
--mtu=0 Set the containers network MTU
|
||||
if no value is provided: default to the default route MTU or 1500 if no default route is available
|
||||
-p, --pidfile="/var/run/docker.pid" Path to use for daemon PID file
|
||||
@@ -851,7 +851,9 @@ For example:
|
||||
$ sudo docker -D info
|
||||
Containers: 14
|
||||
Images: 52
|
||||
Storage Driver: btrfs
|
||||
Storage Driver: aufs
|
||||
Root Dir: /var/lib/docker/aufs
|
||||
Dirs: 545
|
||||
Execution Driver: native-0.2
|
||||
Kernel Version: 3.13.0-24-generic
|
||||
Operating System: Ubuntu 14.04 LTS
|
||||
@@ -867,6 +869,8 @@ For example:
|
||||
Init Path: /usr/bin/docker
|
||||
Username: svendowideit
|
||||
Registry: [https://index.docker.io/v1/]
|
||||
Labels:
|
||||
storage=ssd
|
||||
|
||||
The global `-D` option tells all `docker` commands to output debug information.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user