containers / containers/bubblewrap
Can't mount more filesystems within a read-only mount
- Dominant language
- C
- Stars
- 8.7k
- Forks
- 386
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 11
Description
Simple example:
```bash
$ bwrap --ro-bind / / --bind . /here true
bwrap: Can't mkdir /here: Read-only file system
```
This can be worked around by creating the target directory for the second mount inside the root of the first mount, or by using something like overlayfs.
If there was a way to work around this in bubblewrap itself, it would be nice, but I'm not sure it's possible. Maybe if overlayfs integration gets added (#412), there could be an option for a "semi-read-only" mount to avoid this issue.
Also, maybe there could be some sort of warning with hints to resolve it if this situation is detected?
While there may not be any practical solution, I'm partly also posting this so anyone else who has this issue doesn't need to spend their weekend debugging it.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.