Skip to content

Commit

Permalink
Add examples of storage-opts and log-opts for the daemon
Browse files Browse the repository at this point in the history
Signed-off-by: Alvin Deng <[email protected]>
  • Loading branch information
alvin319 committed Apr 19, 2017
1 parent 4bcb02b commit c79bf50
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/reference/commandline/dockerd.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,24 @@ options for `zfs` start with `zfs` and options for `btrfs` start with `btrfs`.

#### Devicemapper options

This is an example of the configuration file for devicemapper on Linux:

```json
{
"storage-driver": "devicemapper",
"storage-opts": [
"dm.thinpooldev=/dev/mapper/thin-pool",
"dm.use_deferred_deletion=true",
"dm.use_deferred_removal=true"
],
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "10"
}
}
```

##### `dm.thinpooldev`

Specifies a custom block storage device to use for the thin pool.
Expand Down

0 comments on commit c79bf50

Please sign in to comment.