How-to for FUSE device mount inside container with Singularity 4 and OCI mode #2319
-
Hi @dtrudg , we actually have a current topic where we might benefit from some advice from you folks: we need to be able to mount Quoting my colleague @jordeu from an internal chat: I understood that when you enable OCI mode on singularity 4.0 then they also use the standard CDI to mount devices. This is something similar to our Kubernetes Device Plugin, but not exactly the same. So, we need to figure out how to create/install this CDI driver and then it should be possible to run with something like:
Do you have any suggestions/guidelines/tips in this space? Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
Actually, found this straight after writing this issue: would the |
Beta Was this translation helpful? Give feedback.
-
Hi @marcodelapierre - converted to a discussion as this is a question rather than an issue. If you use Singularity in non-oci mode then the default is to bind all of
However, you probably won't be able to do a lot with it, unless you also add In OCI-mode then you could use CDI, and you could also do a bind...
The What's the overall goal here? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply Dave. @jordeu can you have a look here, maybe we can identify a good solution for Fusion vs Singularity OCI in this context? |
Beta Was this translation helpful? Give feedback.
-
Hi @dtrudg, we are just trying to mount a FUSE tool inside the container as we were doing before but now with OCI mode enabled. Here a reproducible example of what we do without OCI:
It is always failing to mount. Is there any seccomp profile that blocks mounting enabled when running on OCI mode? |
Beta Was this translation helpful? Give feedback.
This is now fixed in the CE 4.0.2 release that went out yesterday.