colima
colima copied to clipboard
Colima injects weird HTTP(S)_PROXY environment variable into containers
Description
Every running container (except kubernetes ones) are injected with follow environment variables:
HTTPS_PROXY=http://localhost:7890
https_proxy=http://localhost:7890
http_proxy=http://localhost:7890
HTTP_PROXY=http://localhost:7890
Where my mac proxy setting is actually
http_proxy=http://127.0.0.1:7890
https_proxy=http://127.0.0.1:7890
And colima ssh vm proxy setting is
https_proxy=http://192.168.5.2:7890
HTTPS_PROXY=http://192.168.5.2:7890
HTTP_PROXY=http://192.168.5.2:7890
http_proxy=http://192.168.5.2:7890
This blocks all my running container to perform http request.
Version
colima version 0.9.1
git commit: 0cbf719f5409ce04b9f0607b681c005d2ff7d94a
runtime: docker
arch: aarch64
client: v28.5.1
server: v28.5.1
limactl version 1.2.1
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
INFO[0000] colima is running using macOS Virtualization.Framework
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: virtiofs
INFO[0000] docker socket: unix:///Users/qliu23/.colima/default/docker.sock
INFO[0000] containerd socket: unix:///Users/qliu23/.colima/default/containerd.sock
INFO[0000] kubernetes: enabled
Reproduction Steps
- With a proxy setting as
http_proxy=http://127.0.0.1:7890, https_proxy=http://127.0.0.1:7890mac os, runcolima start. - After everything is ready, start a container and check their environment variable, e.g.
docker run --rm -it --entrypoint /bin/sh grafana/grafana-oss, and then runenvin the container shell. - You'll found the env
http_proxy=http://localhost:7890and other 3 ones.
Expected behaviour
Expected no such environment variables in the container, or at least same as colima vm, using host ip instead of localhost.
Additional context
N/A