abiosoft / abiosoft/colima

Can't mount a single file inside any container

Offen
#838 7 Kommentare 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Go
Sterne
30.8k
Forks
613
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### 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
$
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.