abiosoft / abiosoft/colima

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

Abierto
#1,280 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Go
Estrellas
30.8k
Forks
613
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### 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_

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.