mirror of https://github.com/docker/cli.git
Added docs for dockerd
Signed-off-by: Renaud Gaubert <renaud.gaubert@gmail.com>
This commit is contained in:
parent
51c7cd91cf
commit
fe07ca70d6
|
@ -72,6 +72,7 @@ Options:
|
||||||
--max-concurrent-uploads int Set the max concurrent uploads for each push (default 5)
|
--max-concurrent-uploads int Set the max concurrent uploads for each push (default 5)
|
||||||
--metrics-addr string Set default address and port to serve the metrics api on
|
--metrics-addr string Set default address and port to serve the metrics api on
|
||||||
--mtu int Set the containers network MTU
|
--mtu int Set the containers network MTU
|
||||||
|
--node-generic-resources list Advertise user-defined resource
|
||||||
--no-new-privileges Set no-new-privileges by default for new containers
|
--no-new-privileges Set no-new-privileges by default for new containers
|
||||||
--oom-score-adjust int Set the oom_score_adj for the daemon (default -500)
|
--oom-score-adjust int Set the oom_score_adj for the daemon (default -500)
|
||||||
-p, --pidfile string Path to use for daemon PID file (default "/var/run/docker.pid")
|
-p, --pidfile string Path to use for daemon PID file (default "/var/run/docker.pid")
|
||||||
|
@ -1237,6 +1238,23 @@ Please note that this feature is still marked as experimental as metrics and met
|
||||||
names could change while this feature is still in experimental. Please provide
|
names could change while this feature is still in experimental. Please provide
|
||||||
feedback on what you would like to see collected in the API.
|
feedback on what you would like to see collected in the API.
|
||||||
|
|
||||||
|
#### Node Generic Resources
|
||||||
|
|
||||||
|
The `--node-generic-resources` option takes a list of key-value
|
||||||
|
pair (`key=value`) that allows you to advertise user defined resources
|
||||||
|
in a swarm cluster.
|
||||||
|
|
||||||
|
The current expected use case is to advertise NVIDIA GPUs so that services
|
||||||
|
requesting `NVIDIA-GPU=[0-16]` can land on a node that has enough GPUs for
|
||||||
|
the task to run.
|
||||||
|
|
||||||
|
Example of usage:
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"node-generic-resources": ["NVIDIA-GPU=UUID1", "NVIDIA-GPU=UUID2"]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### Daemon configuration file
|
### Daemon configuration file
|
||||||
|
|
||||||
The `--config-file` option allows you to set any configuration option
|
The `--config-file` option allows you to set any configuration option
|
||||||
|
@ -1325,6 +1343,7 @@ This is a full example of the allowed configuration options on Linux:
|
||||||
"no-new-privileges": false,
|
"no-new-privileges": false,
|
||||||
"default-runtime": "runc",
|
"default-runtime": "runc",
|
||||||
"oom-score-adjust": -500,
|
"oom-score-adjust": -500,
|
||||||
|
"node-generic-resources": ["NVIDIA-GPU=UUID1", "NVIDIA-GPU=UUID2"],
|
||||||
"runtimes": {
|
"runtimes": {
|
||||||
"cc-runtime": {
|
"cc-runtime": {
|
||||||
"path": "/usr/bin/cc-runtime"
|
"path": "/usr/bin/cc-runtime"
|
||||||
|
|
|
@ -56,6 +56,7 @@ dockerd - Enable daemon mode
|
||||||
[**--mtu**[=*0*]]
|
[**--mtu**[=*0*]]
|
||||||
[**--max-concurrent-downloads**[=*3*]]
|
[**--max-concurrent-downloads**[=*3*]]
|
||||||
[**--max-concurrent-uploads**[=*5*]]
|
[**--max-concurrent-uploads**[=*5*]]
|
||||||
|
[**--node-generic-resources**[=*[]*]]
|
||||||
[**-p**|**--pidfile**[=*/var/run/docker.pid*]]
|
[**-p**|**--pidfile**[=*/var/run/docker.pid*]]
|
||||||
[**--raw-logs**]
|
[**--raw-logs**]
|
||||||
[**--registry-mirror**[=*[]*]]
|
[**--registry-mirror**[=*[]*]]
|
||||||
|
@ -326,6 +327,15 @@ unix://[/path/to/socket] to use.
|
||||||
**--max-concurrent-uploads**=*5*
|
**--max-concurrent-uploads**=*5*
|
||||||
Set the max concurrent uploads for each push. Default is `5`.
|
Set the max concurrent uploads for each push. Default is `5`.
|
||||||
|
|
||||||
|
**--node-generic-resources**=*[]*
|
||||||
|
Advertise user-defined resource. Default is `[]`.
|
||||||
|
Use this if your swarm cluster has some nodes with custom
|
||||||
|
resources (e.g: NVIDIA GPU, SSD, ...) and you need your services to land on
|
||||||
|
nodes advertising these resources.
|
||||||
|
Usage example: `--node-generic-resources "NVIDIA-GPU=UUID1"
|
||||||
|
--node-generic-resources "NVIDIA-GPU=UUID2"`
|
||||||
|
|
||||||
|
|
||||||
**-p**, **--pidfile**=""
|
**-p**, **--pidfile**=""
|
||||||
Path to use for daemon PID file. Default is `/var/run/docker.pid`
|
Path to use for daemon PID file. Default is `/var/run/docker.pid`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue