mc256/starlight

Can Starlight pull dynamic libraries as needed?

Opened this issue · 2 comments

Describe your question here

Assuming such a situation, program A needs to use a libhello.so, but libhello.so is in the remote registry and does not exist in the container, can Starlight pull this libhello.so?

As far as I know, it seems that the dynamic linker does not go through the FUSE file system.

Hi @PerseidMeteor , Starlight is not lazy pulling, all the files that does not exist in the local filesystem WILL be eventually pulled from the registry to the local filesystem. So a simple answer to this question is yes.

it seems that the dynamic linker does not go through the FUSE file system.
I think this is not true.

It depends on how you implement the FUSE API, you can see our implementation here:
https://github.com/mc256/starlight/blob/master/client/fs/fs.go#L169-L210

Other docs that you could perhaps refer to:
https://www.cs.hmc.edu/~geoff/classes/hmc.cs137.201601/homework/fuse/fuse_doc.html