Remove path check for bind mounts
Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
parent
ce59a4c223
commit
df05472bcc
@ -457,9 +457,6 @@ def format_device_option(entity_type, config):
|
|||||||
device = config['driver_opts'].get('device')
|
device = config['driver_opts'].get('device')
|
||||||
if o and o == 'bind' and device:
|
if o and o == 'bind' and device:
|
||||||
fullpath = os.path.abspath(os.path.expanduser(device))
|
fullpath = os.path.abspath(os.path.expanduser(device))
|
||||||
if not os.path.exists(fullpath):
|
|
||||||
raise ConfigurationError(
|
|
||||||
"Device path {} does not exist.".format(fullpath))
|
|
||||||
return fullpath
|
return fullpath
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user