Skip to content

Commit 0fcfc0b

Browse files
committed
Add support for other overlay filesystems.
1 parent d92e563 commit 0fcfc0b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.changes/1039.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"description": "support overlay and fuse-overlayfs storage drivers",
3+
"type": "added"
4+
}

src/docker/shared.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ fn dockerinfo_parse_root_mount_path(info: &serde_json::Value) -> Result<MountDet
846846
.and_then(|v| v.as_str())
847847
.ok_or_else(|| eyre::eyre!("no driver name found"))?;
848848

849-
if driver_name == "overlay2" {
849+
if driver_name.to_lowercase().contains("overlay") {
850850
let path = info
851851
.pointer("/0/GraphDriver/Data/MergedDir")
852852
.and_then(|v| v.as_str())

0 commit comments

Comments
 (0)