From e1265df404a4f7037a6b351b812f18c7d88f54bf Mon Sep 17 00:00:00 2001 From: Brian Goff Date: Mon, 7 Mar 2016 21:41:44 -0500 Subject: [PATCH] When calling volume driver Mount, send opaque ID This generates an ID string for calls to Mount/Unmount, allowing drivers to differentiate between two callers of `Mount` and `Unmount`. Signed-off-by: Brian Goff --- docs/extend/plugins_volume.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/extend/plugins_volume.md b/docs/extend/plugins_volume.md index 88798497c3..5c2ebb49bc 100644 --- a/docs/extend/plugins_volume.md +++ b/docs/extend/plugins_volume.md @@ -115,7 +115,8 @@ Respond with a string error if an error occurred. **Request**: ```json { - "Name": "volume_name" + "Name": "volume_name", + "ID": "b87d7442095999a92b65b3d9691e697b61713829cc0ffd1bb72e4ccd51aa4d6c" } ``` @@ -124,6 +125,8 @@ name. This is called once per container start. If the same volume_name is reques more than once, the plugin may need to keep track of each new mount request and provision at the first mount request and deprovision at the last corresponding unmount request. +`ID` is a unqiue ID for the caller that is requesting the mount. + **Response**: ```json { @@ -162,7 +165,8 @@ available, and/or a string error if an error occurred. **Request**: ```json { - "Name": "volume_name" + "Name": "volume_name", + "ID": "b87d7442095999a92b65b3d9691e697b61713829cc0ffd1bb72e4ccd51aa4d6c" } ``` @@ -170,6 +174,8 @@ Indication that Docker no longer is using the named volume. This is called once per container stop. Plugin may deduce that it is safe to deprovision it at this point. +`ID` is a unqiue ID for the caller that is requesting the mount. + **Response**: ```json {