abiosoft / abiosoft/colima

Network address does not populate when connected to VPN

Ouverte
#1,279 4 commentaires 6 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Go
Étoiles
30.8k
Forks
613
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

### Description

## Preamble
Very sorry if this is a duplicate, I've seen many similar issues on GH and around the web, but none quite like this. Seems like it could be _user_ error, I just didn't have this issue before a macOS update. Thanks for maintaining this otherwise great software!

## Issue
While connected to my corporate VPN I'm unable to connect to docker containers exposed on localhost with a forwarded port.

Notably running `colima ls` displays no network address when the container is spun up on VPN, but does display on VPN. In order to get an accessible container, I have to tediously log out of the VPN, spin it up, then log back in.

## Attempted fixes
- Asking coworker (he gave up and installed podman)
- Setting network address in colima config to true
- Setting network address to false and host addresses to true
- Uninstalling and reinstalling.

### Version

colima version 0.8.1
git commit: 96598cc5b64e5e9e1e64891642b91edc8ac49d16

runtime: docker
arch: aarch64
client: v28.0.0
server: v27.4.0
limactl version 1.0.6
zsh: command not found: qemu-img

### Operating System

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

### Output of `colima status`

➜ colima status
INFO[0000] colima is running using macOS Virtualization.Framework
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: sshfs
INFO[0000] socket: unix:///Users/trpkq59/.colima/default/docker.sock

### Reproduction Steps

1. Sign on to my corporate VPN (sorry...)
2. `docker run` a container with an exposed port
3. Attempt to connect

### Expected behaviour

Connection would be uneventful

### Additional context

This problem may have been introduced with the Sequoia update, but I'm not positive on that.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

The issue is about network address detection in colima when a VPN is active. Start by examining the network configuration logic in the colima codebase, likely in files handling VM networking or status reporting. Look for how network interfaces are enumerated and filtered. Test by running colima with VPN on/off and comparing network output. 'Done' means colima displays a network address and containers are reachable while VPN is connected.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
docker, go, macos
Domaine
cli, devops, networking
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.