abiosoft / abiosoft/colima

Volume mount issue (permission denied)

Đang mở
#362 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
30.8k
Fork
613
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Description

Hi,

we're now running a POC of Docker for Desktop replacement and we've reached a problem while using `nodemon` with Colima. Volume mount that is used to hot-swap the code within the container something that is working with original Docker is not working in Colima (sample code for reproduction attached).

From what I've seen mounted files have different users and group assigned in the container's filesystem:

Docker:
```
ls -la /app/backend

backend | drwxr-xr-x 8 node node 256 Jul 8 05:48 .
backend | drwxr-xr-x 1 root root 4096 Jul 7 07:58 ..
backend | -rw-r--r-- 1 node node 6148 Jul 8 05:48 .DS_Store
backend | -rw-r--r-- 1 node node 31 Jul 7 07:43 .nodemonrc
backend | -rw-r--r-- 1 node node 532 Jul 7 13:19 index.js
backend | drwxr-xr-x 3 node node 96 Jul 7 13:26 lib
backend | -rw-r--r-- 1 node node 54680 Jul 7 13:25 package-lock.json
backend | -rw-r--r-- 1 node node 266 Jul 8 06:13 package.json
```

Colima:
```
ls -la /app/backend

backend | drwxr-xr-x 9 501 dialout 288 Jul 8 06:14 .
backend | drwxr-xr-x 1 root root 4096 Jul 8 06:18 ..
backend | -rw-r--r-- 1 501 dialout 6148 Jul 8 05:48 .DS_Store
backend | -rw-r--r-- 1 501 dialout 31 Jul 7 07:43 .nodemonrc
backend | -rw-r--r-- 1 501 dialout 532 Jul 7 13:19 index.js
backend | drwxr-xr-x 3 501 dialout 96 Jul 7 13:26 lib
backend | drwxr-xr-x 78 501 dialout 2496 Jul 8 06:14 node_modules
backend | -rw-r--r-- 1 501 dialout 54680 Jul 8 06:14 package-lock.json
backend | -rw-r--r-- 1 501 dialout 266 Jul 8 06:13 package.json
```

Is this something that is a problem with our configuration or with the tool itself?

Regards,
Tomasz.

### Version

Colima Version: 0.4.4 (git commit: 8bb1101a861a8b6d2ef6e16aca97a835f65c4f8f)
Lima Version: 0.11.1
Qemu Version: 7.0.0

### Operating System

- [ ] macOS Intel
- [X] macOS M1
- [ ] Linux

### Reproduction Steps

1. Please unzip the attached source code
2. `colima start --mount-type 9p`
3. `docker-compose up --build`

### Expected behaviour

Instead of ending up with EACCESS it should work as with Docker for Desktop.

### Additional context

ZIP with source code for issue reproduction (`docker-compose.yml` + `Dockerfile` + Fastify-based hello-world application using nodemon): [colima-issue-reproduction.zip](https://github.com/abiosoft/colima/files/9069263/colima-issue-reproduction.zip)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.