mirror of https://github.com/docker/docker-py.git
Merge pull request #1180 from kanaka/patch-1
Fix Mount bind type sanity check
This commit is contained in:
commit
fff71e9dbf
|
|
@ -80,7 +80,7 @@ class Mount(dict):
|
||||||
self['BindOptions'] = {
|
self['BindOptions'] = {
|
||||||
'Propagation': propagation
|
'Propagation': propagation
|
||||||
}
|
}
|
||||||
if any(labels, driver_config, no_copy):
|
if any([labels, driver_config, no_copy]):
|
||||||
raise errors.DockerError(
|
raise errors.DockerError(
|
||||||
'Mount type is binding but volume options have been '
|
'Mount type is binding but volume options have been '
|
||||||
'provided.'
|
'provided.'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue