mirror of https://github.com/docker/cli.git
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 <cpuguy83@gmail.com>
This commit is contained in:
parent
f440f14613
commit
e1265df404
|
@ -115,7 +115,8 @@ Respond with a string error if an error occurred.
|
||||||
**Request**:
|
**Request**:
|
||||||
```json
|
```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
|
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.
|
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**:
|
**Response**:
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
@ -162,7 +165,8 @@ available, and/or a string error if an error occurred.
|
||||||
**Request**:
|
**Request**:
|
||||||
```json
|
```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
|
per container stop. Plugin may deduce that it is safe to deprovision it at
|
||||||
this point.
|
this point.
|
||||||
|
|
||||||
|
`ID` is a unqiue ID for the caller that is requesting the mount.
|
||||||
|
|
||||||
**Response**:
|
**Response**:
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue