-
Notifications
You must be signed in to change notification settings - Fork 95
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
Mount volume with rw permissions #131
Comments
Duplicate with #107 |
@ningziwen It's not duplicate. I tried to place docker-compose.yml in the root of the user directory. It did not help. |
The mount path also needs to be in home directory. What is the absolute path of "./.volumes/db" in your compose yaml? Is it in home directory? @aleksey925 |
Yes. |
Hi @aleksey925, My folder structure looks like:
I run the compose command from
The output looks like:
To fix the To fix the permission issue I used following compose yml:
Output
|
Hi @monirul, I tried to replicate this. The container started, but the database files are still missing on my local machine. Unfortunately, this is not a solution and the problem is somewhere deeper. |
Hi @monirul. Do you have any news? |
Hi @aleksey925, There was a typo in the yml i provided.
However, for this yml, the For executing the compose command, Finch passes the compose command to nerdctl. This error is returned from the nerdctl. I am investigating why it is failed. I will get back to you as soon as I get the root cause. Thanks, |
Found the root cause of this issue. Thanks @djdongjin for helping me with the investigation. Finch uses lima for virtualization. It seems this error is a known limitation of the sshfs server in lima. sshfs server runs without the root privilege, due to that, Similar lima issues: Here is a lima-issue where lima maintainer suggested to use I manage to run the postgres using...
compose yaml file
then run following command:
Btw, As per lima road map, currently lima supports 9p as experimental feature and plans to switch to 9p instead of reverse-sshfs as default mount driver in v1.0(tentative). |
Confirmed that the workaround that @monirul posted works. I did not have to run a separate volume command either, just For a permanent long term fix, we are tracking moving off of reverse sshfs file sharing to 9p and virtiofs (when available, so Monterrey and above). We were hoping that the latest QEMU version (7.2) would resolve the performance issues of 9p, but it seems like it still needs some more investigation (see the latest comments in lima-vm/lima#971). I think we can leave this issue open until the long term fix is viable. Please reach out if Monirul's comment/workaround still doesn't solve your issue for now. |
Yeah it's expected. Volumes in compose.yaml will be created automatically. volumes:
pgdata: |
how do you pre-populate I posted almost the same issue here: #81 (comment) We use a bind mount to get data into If i create a volume as part of the file, but I need data in that volume before starting |
This is not exactly the same issue, as your issue is regarding using data from the macOS system inside the container. Please see the reply to your issue for more information on the specific use case you asked about, thanks. |
Ah got it - thanks a bunch |
Closing because of no response. Feel free to reopen. More discussions can continue in #81 |
Describe the bug
It is not possible to create a container with a mounted volume.
Steps to reproduce
finch compose up
Expected behavior
Container started successful
Logs
Finch version: v0.1.1
limactl version: fc3f2a9
qemu version: 7.1.0
The text was updated successfully, but these errors were encountered: