-
-
Notifications
You must be signed in to change notification settings - Fork 497
Description
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: 0cbf719
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)
- 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