-
-
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
colima is overwritting ~/.lima/colima/lima.yam during startup #118
Comments
I found a line in the code, that I don't understand: Here the flag |
@phaus what version are you on? Do not worry about volume mounts as it should simply work if you're on version If you still prefer to manually mount volumes, your syntax is wrong. It should be |
Yeah, Colima dynamic generates the lima config on startup. Modify the config has no effect except you use Lima override.
That is the expectable behaviour, the cache directory is only used for assets download via the host and does not need to be writable |
I am trying to run a docker container as I am doing it with docker for mac: docker run -d \
-v $PWD/work:/work \
-v $PWD/data:/data \
-v $PWD/tmp/db-data:/var/lib/postgresql/data \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=password \
-e POSTGRES_DB=database \
-e PGDATA=/var/lib/postgresql/data \
--name db-host \
ghcr.io/baosystems/postgis:13-3.1
In both cases: with a default colima setup and mounting it manually. Am I am doing something wrong? 🤔 |
Does this work?
|
Similar error:
|
I believe it is related to this #70 (comment) and #83. As a workaround since
|
thx for the hint. I am not able to use docker volumes, since in |
If you observe the error message #118 (comment), the only issue is with the You can make only that a docker volume as I specified here #118 (comment). |
Then I can still not write any files from my docker container into |
So I guess this permission issue is related to lima-vm/lima#231 - I will track it there and close it here :-) |
I did update the
~/.lima/colima/lima.yam
to have a write-able access to my userfolder:However, after restarting colima, the config is always reset to
writable: false
.I also wounder why it is false in the first place, since I created the colima VM with
colima start --mount $HOME:/Users/myuser:w
This issues is blocking me, from migrating from docker for desktop to colima, since I need to have foders within my home user path writable (e.g. for postgres containers).
The text was updated successfully, but these errors were encountered: