Signed-off-by: Zhu Guihua <zhugh.fnst@cn.fujitsu.com>
| ... | ... |
@@ -244,9 +244,10 @@ internals) to create writable containers from images. Many of these |
| 244 | 244 |
backends use operating system level technologies and can be |
| 245 | 245 |
configured. |
| 246 | 246 |
|
| 247 |
-Specify options to the storage backend with **--storage-opt** flags. The only |
|
| 248 |
-backend that currently takes options is *devicemapper*. Therefore use these |
|
| 249 |
-flags with **-s=**devicemapper. |
|
| 247 |
+Specify options to the storage backend with **--storage-opt** flags. The |
|
| 248 |
+backends that currently take options are *devicemapper* and *zfs*. |
|
| 249 |
+Options for *devicemapper* are prefixed with *dm* and options for *zfs* |
|
| 250 |
+start with *zfs*. |
|
| 250 | 251 |
|
| 251 | 252 |
Specifically for devicemapper, the default is a "loopback" model which |
| 252 | 253 |
requires no pre-configuration, but is extremely inefficient. Do not |
| ... | ... |
@@ -258,7 +259,7 @@ more information see `man lvmthin`. Then, use `--storage-opt |
| 258 | 258 |
dm.thinpooldev` to tell the Docker engine to use that pool for |
| 259 | 259 |
allocating images and container snapshots. |
| 260 | 260 |
|
| 261 |
-Here is the list of *devicemapper* options: |
|
| 261 |
+##Devicemapper options: |
|
| 262 | 262 |
|
| 263 | 263 |
#### dm.thinpooldev |
| 264 | 264 |
|
| ... | ... |
@@ -464,6 +465,16 @@ this topic, see |
| 464 | 464 |
Otherwise, set this flag for migrating existing Docker daemons to a |
| 465 | 465 |
daemon with a supported environment. |
| 466 | 466 |
|
| 467 |
+##ZFS options |
|
| 468 |
+ |
|
| 469 |
+#### zfs.fsname |
|
| 470 |
+ |
|
| 471 |
+Set zfs filesystem under which docker will create its own datasets. |
|
| 472 |
+By default docker will pick up the zfs filesystem where docker graph |
|
| 473 |
+(`/var/lib/docker`) is located. |
|
| 474 |
+ |
|
| 475 |
+Example use: `docker daemon -s zfs --storage-opt zfs.fsname=zroot/docker` |
|
| 476 |
+ |
|
| 467 | 477 |
# CLUSTER STORE OPTIONS |
| 468 | 478 |
|
| 469 | 479 |
The daemon uses libkv to advertise |