abiosoft / abiosoft/colima

Can't mount a single file inside any container

Aperta
#838 7 commenti 3 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 try to mount a file inside the container, it creates a directory without any content.
Mounting directories works perfectly.

### Version

Colima Version: 0.5.6
Lima Version: 0.18.0
Qemu Version: 8.1.2

### Operating System

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

### Output of `colima status`

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

### Reproduction Steps

1. Create a file called test with "test" as text
`echo "test" > /tmp/test`
3. Run an ubuntu image with file mounted:
`docker run -it --rm -v /tmp/test:/tmp/test ubuntu:latest bash`
4. Cat file inside container:
```bash
cat /tmp/test
cat: /tmp/test: Is a directory
```

### Expected behaviour

Inside container, we should get:
```bash
# ls /tmp/test
/tmp/test
# cat /tmp/test
test
```

### Additional context

Using 9p mounts

```bash
$ cat ~/.lima/_config/override.yaml
mountType: 9p
$
```

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.