Add examples of storage-opts and log-opts for the daemon
File: engine/reference/commandline/dockerd.md
There are no examples of how to add storage-opts or log-opts, nor anything in second-level lists of properties, really, to /etc/docker/daemon.json. Here's an example that would save a few folks' time.
{
"storage-driver": "devicemapper",
"storage-opts": [
"dm.thinpooldev=/dev/mapper/vg0-pool0",
"dm.use_deferred_deletion=true",
"dm.use_deferred_removal=true"
],
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "10"
}
}
#dibs
@scjane How's your progress on this? We'll need to return this to the unclaimed pool for the hackathon, if we don't see a PR. Thanks!
I'll try to tackle this one!
I have created a PR in moby to add this example in the documentation.
Reviewing upstream. Looks great!
Merged upstream!
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
/lifecycle locked