-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mounting single files into the guest #130
Comments
Unlikely. The straightforward way would be to just mount the directory of the file from macOS to Linux, and set up Linux bind-mount inside the guest. |
For small files like certificates, I'd suggest just copying the file rather than mounting. |
The certificate injection use case must be quite common. It would be great if a workable solution could be found to programmatically add certificates on start. nerdctl has a number of issue related to this: Adding the below to the lima.yml has two issues: mounts:
- location: "/usr/local/share/ca-certificates"
writable: false
provision:
- mode: system
script: |
#!/bin/bash
update-ca-certificates
|
This is #287
I talked in #397 (comment) about wanting a mechanism to specify a different mount point inside the guest. Maybe that should have it's own top-level issue. I guess all this is also somewhat stalled because we are not sure if we are going to stick with |
I would like to extend
mounts
in 2 ways:The first seems easy enough, but it is not clear to me if this is going to work with sshfs. Also given that #118 is WIP, this may be wasted effort (unless it is rather simple to implement).
Any hints of making single file mounts work with sshfs? And if not, will those be possible with samba?
One use case (I have others) would be adding custom CA certs to the guest:
I guess I would like to have something similar to the capabilities of the docker
-v
option to define mounts.The text was updated successfully, but these errors were encountered: