abiosoft / abiosoft/colima

Docker PHP container running `composer install` fails with host volume bind mount (`-v "$(pwd)":/opt`)

Aperta
#695 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
30.8k
Fork
613
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Description

When I run:
```sh
docker run --rm \
--pull=always \
-v "$(pwd)":/opt \
-w /opt \
laravelsail/php82-composer:latest \
bash -c "laravel new hello-larvel"
# which runs `composer install` to install PHP package dependencies
```

It fails trying to install PHP package dependencies with the following error:

```
In Filesystem.php line 314:

Could not delete /opt/hello-larvel/vendor/composer/5ece1293/guzzle-uri-tem
plate-b945d74:
```

However, this error does NOT happen if I remove the volume bind mount option `-v "$(pwd)":/opt`
```sh
docker run --rm \
--pull=always \
-w /opt \
laravelsail/php82-composer:latest \
bash -c "laravel new hello-larvel2"
# Success -- no errors!
```

### Version

Colima Version: git commit: `5f30c83963c69c54785bbf4911bf4338d2e5731b`
Lima Version: `0.15.0`
Qemu Version: `7.2.1`

// From `sw_vers`:
ProductName: `macOS`
ProductVersion: `13.3.1`
BuildVersion: `22E261`

### Operating System

- [ ] macOS Intel <= 12 (Monterrey)
- [ ] macOS Intel >= 13 (Ventura)
- [ ] macOS M1 <= 12 (Monterrey)
- [X] macOS M1 >= 13 (Ventura)
- [ ] Linux

### Output of `colima status`

```
INFO[0000] colima is running using QEMU
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: sshfs
INFO[0000] socket: unix:///Users/king/.colima/default/docker.sock
```

### Reproduction Steps

See Description

### Expected behaviour

The PHP package dependencies should install with docker volume bind mount.

### Additional context

_No response_

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.