mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
api/client/service: shorten to volume-opt
`volume-driver-opt` was too verbose for its own existence and the sanity
of those in the vicinity. The much better, sleeker `volume-opt` replaces
it. 7 bytes and a case of carpal tunnel syndrome are saved!
Signed-off-by: Stephen J Day <stephen.day@docker.com>
(cherry picked from commit a40b5820c9
)
Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
8e0e7644d8
commit
6a06d8d94c
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ func (m *MountOpt) Set(value string) error {
|
|||
setValueOnMap(volumeOptions().Labels, value)
|
||||
case "volume-driver":
|
||||
volumeOptions().DriverConfig.Name = value
|
||||
case "volume-driver-opt":
|
||||
case "volume-opt":
|
||||
if volumeOptions().DriverConfig.Options == nil {
|
||||
volumeOptions().DriverConfig.Options = make(map[string]string)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue