浏览代码

Remove path check for bind mounts

Signed-off-by: aiordache <[email protected]>
aiordache 5 年之前
父节点
当前提交
df05472bcc
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      compose/config/config.py

+ 0 - 3
compose/config/config.py

@@ -457,9 +457,6 @@ def format_device_option(entity_type, config):
     device = config['driver_opts'].get('device')
     if o and o == 'bind' and 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