Loosen the check for mounted volumes

Docker apparently does not always use the same mounted volume type

Fixes #352
This commit is contained in:
Joseph Schorr 2015-08-12 13:16:58 -04:00
parent aee746bec6
commit 5ea028c8be

View file

@ -157,8 +157,7 @@ class LocalStorage(BaseStorageV2):
# Verify that the storage's root path is under a mounted Docker volume.
for mount in mounts:
if mount.mountpoint != '/' and self._root_path.startswith(mount.mountpoint):
if mount.device == 'tmpfs':
return
return
raise Exception('Storage path %s is not under a mounted volume.\n\n'
'Registry data must be stored under a mounted volume '