abiosoft / abiosoft/colima

Issue with ~/.aws and ~/.gitconfig binding in DevContainer with Colima on macOS M1

Đang mở
#1,280 1 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

I'm experiencing an issue when trying to bind `~/.aws` and `~/.gitconfig` in my DevContainer setup using Colima on my MacBook Pro M1. The binding does not seem to work properly, and the files are not accessible inside the container.

### Version

Colima version:

```console
$ colima --version
colima version 0.8.0
```
macOS version:

```console
$ sw_vers
ProductName: macOS
ProductVersion: 15.3.1
BuildVersion: 24D70
```

### Operating System

- [ ] macOS Intel <= 13 (Ventura)
- [ ] macOS Intel >= 14 (Sonoma)
- [ ] Apple Silicon <= 13 (Ventura)
- [x] Apple Silicon >= 14 (Sonoma)
- [ ] Linux

### Output of `colima status`

```console
$ colima status
INFO[0019] colima is running using QEMU
INFO[0019] arch: aarch64
INFO[0019] runtime: docker
INFO[0019] mountType: sshfs
INFO[0019] socket: unix:///Users/me/.colima/default/docker.sock
```

### DevContainer Configuration (devcontainer.json):
```json
{
"name": "DevContainer",
"dockerFile": "Dockerfile",
"runArgs": [
"--network=host"
],
"context": "..",
"postCreateCommand": "/bin/bash .devcontainer/setup.sh",
"customizations": {
"vscode": {
"settings": {
"python.defaultInterpreterPath": "/usr/local/bin/python3",
"terminal.integrated.shell.linux": "bash",
"terminal.integrated.defaultProfile.linux": "bash",
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash"
}
},
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance"
]
},
"forwardPorts": [8000],
"mounts": [
"source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached",
"source=${localEnv:HOME}/.aws,target=/home/vscode/.aws,type=bind,consistency=cached"
],
"remoteUser": "vscode"
}
}
}
```

### Reproduction Steps

The `~/.aws` directory is not correctly mounted inside the container.
The `~/.gitconfig` file (not shown in the configuration above, but similarly mounted) is also not available inside the container.
Other mounts (like the workspace) work fine.

# Steps to Reproduce:
1. Start Colima:
```console
colima start
```
2. Open VS Code and start the DevContainer.
3. Check if ~/.aws and ~/.gitconfig are accessible inside the container.

### Expected behaviour

The ~/.aws and ~/.gitconfig directories should be correctly mounted inside the container and accessible by the vscode user.

### Additional context

_No response_

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.