From 5423de94f0cb4c0c749aeef42044dc2de73f111d Mon Sep 17 00:00:00 2001 From: Matt Bentley Date: Fri, 7 Oct 2016 13:01:47 -0400 Subject: [PATCH] Add deferred deletion to recommended dm options Signed-off-by: Matt Bentley --- engine/userguide/storagedriver/device-mapper-driver.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/engine/userguide/storagedriver/device-mapper-driver.md b/engine/userguide/storagedriver/device-mapper-driver.md index 49077d6c17..a1a372e763 100644 --- a/engine/userguide/storagedriver/device-mapper-driver.md +++ b/engine/userguide/storagedriver/device-mapper-driver.md @@ -314,10 +314,10 @@ assumes that the Docker daemon is in the `stopped` state. 14. Configure the Docker daemon with specific devicemapper options. - There are two ways to do this. You can set options on the command line if you start the daemon there: + Now that your storage is configured, configure the Docker daemon to use it. There are two ways to do this. You can set options on the command line if you start the daemon there: ```bash - --storage-driver=devicemapper --storage-opt=dm.thinpooldev=/dev/mapper/docker-thinpool --storage-opt dm.use_deferred_removal=true + --storage-driver=devicemapper --storage-opt=dm.thinpooldev=/dev/mapper/docker-thinpool --storage-opt=dm.use_deferred_removal=true --storage-opt=dm.use_deferred_deletion=true ``` You can also set them for startup in the `daemon.json` configuration, for example: @@ -327,11 +327,14 @@ assumes that the Docker daemon is in the `stopped` state. "storage-driver": "devicemapper", "storage-opts": [ "dm.thinpooldev=/dev/mapper/docker-thinpool", - "dm.use_deferred_removal=true" + "dm.use_deferred_removal=true", + "dm.use_deferred_deletion=true" ] } ``` + >**Note**: Always set both `dm.use_deferred_removal=true` and `dm.use_deferred_deletion=true` to prevent unintentionally leaking mount points. + 15. If using systemd and modifying the daemon configuration via unit or drop-in file, reload systemd to scan for changes. ```bash