Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
| ... | ... |
@@ -7,12 +7,10 @@ docker \- Docker image and container command line interface |
| 7 | 7 |
# SYNOPSIS |
| 8 | 8 |
**docker** [OPTIONS] COMMAND [ARG...] |
| 9 | 9 |
|
| 10 |
-**docker** daemon [--help|...] |
|
| 11 |
- |
|
| 12 | 10 |
**docker** [--help|-v|--version] |
| 13 | 11 |
|
| 14 | 12 |
# DESCRIPTION |
| 15 |
-is a client for interacting with the daemon (see **dockerd(8)**) through the CLI. |
|
| 13 |
+**docker** is a client for interacting with the daemon (see **dockerd(8)**) through the CLI. |
|
| 16 | 14 |
|
| 17 | 15 |
The Docker CLI has over 30 commands. The commands are listed below and each has |
| 18 | 16 |
its own man page which explain usage and arguments. |
| ... | ... |
@@ -62,17 +60,7 @@ unix://[/path/to/socket] to use. |
| 62 | 62 |
|
| 63 | 63 |
Use "docker help" or "docker --help" to get an overview of available commands. |
| 64 | 64 |
|
| 65 |
-# RUNTIME EXECUTION OPTIONS |
|
| 66 |
- |
|
| 67 |
-Use the **--exec-opt** flags to specify options to the execution driver. |
|
| 68 |
-The following options are available: |
|
| 69 |
- |
|
| 70 |
-#### native.cgroupdriver |
|
| 71 |
-Specifies the management of the container's `cgroups`. You can specify `cgroupfs` |
|
| 72 |
-or `systemd`. If you specify `systemd` and it is not available, the system errors |
|
| 73 |
-out. |
|
| 74 |
- |
|
| 75 |
-#### Client |
|
| 65 |
+# EXAMPLES |
|
| 76 | 66 |
For specific client examples please see the man page for the specific Docker |
| 77 | 67 |
command. For example: |
| 78 | 68 |
|
| ... | ... |
@@ -672,6 +672,24 @@ For information about how to create an authorization plugin, see [authorization |
| 672 | 672 |
plugin](https://docs.docker.com/engine/extend/authorization/) section in the |
| 673 | 673 |
Docker extend section of this documentation. |
| 674 | 674 |
|
| 675 |
+# RUNTIME EXECUTION OPTIONS |
|
| 676 |
+ |
|
| 677 |
+You can configure the runtime using options specified with the `--exec-opt` flag. |
|
| 678 |
+All the flag's options have the `native` prefix. A single `native.cgroupdriver` |
|
| 679 |
+option is available. |
|
| 680 |
+ |
|
| 681 |
+The `native.cgroupdriver` option specifies the management of the container's |
|
| 682 |
+cgroups. You can only specify `cgroupfs` or `systemd`. If you specify |
|
| 683 |
+`systemd` and it is not available, the system errors out. If you omit the |
|
| 684 |
+`native.cgroupdriver` option,` cgroupfs` is used. |
|
| 685 |
+ |
|
| 686 |
+This example sets the `cgroupdriver` to `systemd`: |
|
| 687 |
+ |
|
| 688 |
+```bash |
|
| 689 |
+$ sudo dockerd --exec-opt native.cgroupdriver=systemd |
|
| 690 |
+``` |
|
| 691 |
+ |
|
| 692 |
+Setting this option applies to all containers the daemon launches. |
|
| 675 | 693 |
|
| 676 | 694 |
# HISTORY |
| 677 | 695 |
Sept 2015, Originally compiled by Shishir Mahajan <shishir.mahajan@redhat.com> |