colima: Cannot chown or chmod bind mounted files/dirs
Hello and thank you for the awesome project!
Iβm running into an inconsistency between docker for mac and lima. With docker for mac, I can successfully chown & chmod bind mounted files/dirs within a container.
If I attempt this with colima I get chown: file.txt: Permission denied
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 7
- Comments: 23 (4 by maintainers)
This is how I solved it. I had to write mounts for
~
twice: with absolute path and with~
.Put this into your
/Users/<username>/.lima/_config/override.yaml
:colima delete
colima start --mount-type 9p
Versions:
Same use case.- Resolved it following @bofm 's comment in three easy steps:
1. Stop colima and create
override.yaml
file2. Edit the template
3. Then start colima editing the configuration file before start:
Tried your docker-compose.yaml example:
It canβt work by path
/Users/<username>/.lima/_config
in my version , then i chose another path/Users/<username>/.colima/_lima/_config
and it works ,for reference onlyAlso worked for me. Thanks!
Has anyone been able to solve it?
My use case:
The logs are:
The error is:
Simple example:
Console: