Skip to content

Conversation

@hsiangkao
Copy link
Member

generateMountOpts() needs to be adapted since it duplicates some client code.

tested with erofs snapshotter and runC:
image

See PR containerd/containerd#7839
and commit 34d587818596 ("Use mount.Target to specify subdirectory
of rootfs mount") for more details.

Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
So that

$ nerdctl run --snapshotter=erofs -it --rm docker.1ms.run/library/nginx:latest /bin/sh

can work now instead of erroring out as:
```
FATA[0000] failed to mount {Type:format/mkdir/overlay Source:overlay Target: Options:[lowerdir={{ overlay 0 6 }}]} on "/tmp/initialC2844197147": mount source: "overlay", target: "/tmp/initialC2844197147", fstype: format/mkdir/overlay, flags: 0, data: "lowerdir={{ overlay 0 6 }}", err: no such device
```

Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
@hsiangkao
Copy link
Member Author

hsiangkao commented Oct 31, 2025

@AkihiroSuda AkihiroSuda added this to the v2.2.0 milestone Oct 31, 2025
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda AkihiroSuda merged commit 804a8cd into containerd:main Oct 31, 2025
55 of 56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants