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`.
@@ -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
{
