docs icon indicating copy to clipboard operation
docs copied to clipboard

Add examples of storage-opts and log-opts for the daemon

Open gswallow opened this issue 9 years ago • 7 comments

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"
  }
}

gswallow avatar Dec 22 '16 18:12 gswallow

#dibs

scjane avatar Apr 17 '17 05:04 scjane

@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!

JimGalasyn avatar Apr 19 '17 18:04 JimGalasyn

I'll try to tackle this one!

alvin319 avatar Apr 19 '17 21:04 alvin319

I have created a PR in moby to add this example in the documentation.

alvin319 avatar Apr 19 '17 21:04 alvin319

Reviewing upstream. Looks great!

mdlinville avatar Apr 20 '17 19:04 mdlinville

Merged upstream!

mdlinville avatar Apr 22 '17 01:04 mdlinville

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

docker-robott avatar Mar 05 '23 03:03 docker-robott