abiosoft / abiosoft/colima

Volumes with symbolic Links not working properly Also another problem might be related with permisions

オープン
#1,435 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
30.8k
フォーク
613
PR マージ指標
30日以内にマージされた PR はありません

説明

### Description

In my context I got two users and they are being linked. Which are "iotiq"(my user) and "bor".
I am building my containers with a docker-compose.yml.

when I build ngnix with:
`
nginx:
platform: linux/amd64
image: nginx:1.11
ports:
- "80:80"
- "443:443"
volumes:
- "~/..:/home" #PROBLEM
- "./config/nginx-dev:/etc/nginx/conf.d/"
- "/var/log/nginx:/var/log/nginx"
- "/etc/ssl:/etc/ssl" #PROBLEM
depends_on:
- app

`

I am facing with 2 problems. First one is giving No such file or directory:fopen('/etc/ssl/certs/mdm.crt','r'). Which
exists on the host. Container is being exited after docker compose up. Solved with copying ssl directory to my project and gave the copy of "/ssl" as a volume. That solved my problem. I also tried giving 777 to "/etc/ssl" on my host but it didn't work.
Then it started giving "/home/bor/code/mdm_server/assets/ios/blalba does not exist". When I checked with docker exec bash I can see the 2 users inside /home, bor and iotiq. inside of the iotiq I can see all my data since I gave as " ~/..:/home" . But for bor which is linked to the iotiq, only contains /bor/code/mdm_server/ and inside of project is empty. I also dont see my other stuff inside of bor user dir. On my host when I say `ls /Users/bor` I see all other stuffs in my iotiq user since they are linked. so I gave this as a volume "/Users/iotiq:/home/bor".
Bor is generic user we use in our projects, everything is being based on username bor in other containers as well.

I was using Docker Desktop and it works without problem. Problem with docker desktop is using 6gb for containers and another 8 gb for virtualization :D

configuration belove solved my problem, and it seems colima uses 4gb of rams in total. 😄
I use mongo,grafana,redis,elasticsearch,ngnix,myApp,ldap,mySql with containers

`
nginx:
platform: linux/amd64
image: nginx:1.11
ports:
- "80:80"
- "443:443"
volumes:
- "/Users/iotiq:/home/bor"
- "./config/nginx-dev:/etc/nginx/conf.d/"
- "/var/log/nginx:/var/log/nginx"
- "./ssl:/etc/ssl"
depends_on:
- app
`

### Version

colima version 0.9.1
git commit: 0cbf719f5409ce04b9f0607b681c005d2ff7d94a

runtime: docker
arch: aarch64
client: v28.3.3
server: v28.4.0
limactl version 1.2.1
zsh: command not found: qemu-img

### Operating System

- [ ] macOS Intel <= 13 (Ventura)
- [ ] macOS Intel >= 14 (Sonoma)
- [ ] Apple Silicon <= 13 (Ventura)
- [x] Apple Silicon >= 14 (Sonoma)
- [ ] Linux

### Output of `colima status`

INFO[0000] colima is running using macOS Virtualization.Framework
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: virtiofs
INFO[0000] docker socket: unix:///Users/iotiq/.colima/default/docker.sock
INFO[0000] containerd socket: unix:///Users/iotiq/.colima/default/containerd.sock

### Reproduction Steps

Mentioned above

### Expected behaviour

_No response_

### Additional context

_No response_

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。