소스 검색

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