From 5ea028c8be5aaf5cac2ddafa85cd2e5d4c851a47 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 12 Aug 2015 13:16:58 -0400 Subject: [PATCH] Loosen the check for mounted volumes Docker apparently does not always use the same mounted volume type Fixes #352 --- storage/local.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/storage/local.py b/storage/local.py index f3dcdede1..fc2b79563 100644 --- a/storage/local.py +++ b/storage/local.py @@ -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 '