Can't mount a single file inside any container
- 主要言語
- Go
- スター
- 30.8k
- フォーク
- 613
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
### 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
$
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。