Skip to content

Commit c1f9e8a

Browse files
Merge #1039
1039: Add support for other overlay filesystems. r=Alexhuszagh a=Alexhuszagh This allows other storage engines, such as `overlay` and `fuse-overlayfs` to be used with `CROSS_CONTAINER_IN_CONTAINER`. Any overlay filesystem can be supported, and this has been tested with both `overlay` and `overlay2`. Co-authored-by: Alex Huszagh <ahuszagh@gmail.com>
2 parents f0bf20e + 0fcfc0b commit c1f9e8a

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)