From df05472bcc6f1596e519a1e02f01cebd4e160011 Mon Sep 17 00:00:00 2001 From: aiordache Date: Tue, 22 Sep 2020 10:27:14 +0200 Subject: [PATCH] Remove path check for bind mounts Signed-off-by: aiordache --- compose/config/config.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/compose/config/config.py b/compose/config/config.py index aa8dd068b..1b067e788 100644 --- a/compose/config/config.py +++ b/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