abiosoft / abiosoft/colima

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

Aperta
#1,280 1 commento 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

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_

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.