Skip to content

Commit 69eb4ab

Browse files
authored
fix(worker): circular docker volume dependency when restarting worker (#492)
* fix circular docker volume dependency when restarting worker
1 parent 2ae271f commit 69eb4ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/worker/src/checks/hardware/storage.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,12 @@ pub fn find_largest_storage() -> Option<MountPoint> {
9090
continue;
9191
}
9292

93-
// Skip system/special mounts
93+
// Skip system/special mounts and Docker volumes
9494
if mount_path.starts_with("/proc")
9595
|| mount_path.starts_with("/sys")
9696
|| mount_path.starts_with("/dev")
9797
|| mount_path.starts_with("/run")
98+
|| mount_path.starts_with("/var/lib/docker/volumes")
9899
{
99100
continue;
100101
}

0 commit comments

Comments
 (0)