-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Issue with writable volumes #54
Comments
It is |
In this case I have:
|
This might be because the directory exists inside the colima VM. Probably the safest thing is to delete the colima VM you created and create it again with the corrected |
I cleaned up everything with:
Then I started again the VM with:
I ssh onto the VM to check the state of the directories. At this point the directory volumes is there with the right permissions and the directory clickhouse is not there as intended. I then created the clickhouse container:
I get the error:
If I check on the VM the directory has been created:
If I start again recreating the container without touching anything I get simply this error:
|
When I start the clickhouse container without any volume and I open a terminal on it, I remark that the directory I try to mount as a volume
Maybe it has to do with the fact that there is no |
@matthieugouel do you get the same behaviour if the |
Yes unfortunately. |
@matthieugouel can you try with the latest development version ? Then |
Hi! Exactly the same issue as before unfortunately. |
Adding
for |
thanks for this @jjeising! To give more context as to why this works, in the Runtime section of the readme, it states "On initial startup, Colima initiates with a user specified runtime that defaults to Docker." |
Tried to set this in my compose file for a postgres service, but I still can't mount a volume :( |
I tried the user configuration and couldn't do it as well. I got the user id and group id from
|
Example with mysql
This generates a bunch of permissions errors.
Passing in the UID and GID results in a different error
|
I do a test with postgres in this way:
Result:
The host folder:
|
same issue here, I get a permission denied on shared files. |
Based on the info from gustavodecarlo this is what I ran: colima delete but ls -la ~/Developer/postgres_data/data So, there is no actual file sharing |
I have a docker for mac / docker-compose setup including a postgers container that persists data to a volume. I just installed colima and tried docker-compose up in my project folder. I got lots of:
Is this possibly a colima issue, or an issue switching existing volumes from docker for mac to colima? |
Yeah, sadly it's a known issue with sshfs. You cannot change the owner of the mounted directory. You can however change the owner of the subdirectories. So, specifying custom If you do not rely on symlinks and not primarily working off the mounted volumes, you can try the
|
FWIW: I have this same problem with 9p volumes |
Same problem with 9p. |
same issue, I solved it with these steps:
|
If you are on macOS 13 or newer, you can give the currently development version a try. brew install --HEAD colima |
Hi @abiosoft, I tested the new version of Colima (installed with the brew command line you suggested) on MacOS Ventura. To me my issue is resolved, but others should test their own use case as well. |
Same permission issues on MacOS Ventura 13.0.1, I try:
Works for me. |
I got same issue with virtiofs mount type, and it's able to change owner of sub-directories. |
Hi, I had the same issue, wondering were you using 9p or default sshfs after --HEAD installed? |
I'v tried these command below:
|
fixed this one |
Hi 👋
I just came across this project and it seems very promising, thanks for your work!
I have a little issue while setup a docker container with writable volume (it's a database).
I start Colima and I mount the local directory:
Then, I try to create the docker container:
But the issue is:
It's strange because when I ssh inside the VM I have these rights for the volume directory:
Would you have an idea of why this issue is happening?
Best,
Matthieu.
The text was updated successfully, but these errors were encountered: