Skip to content

colima x86_64 daemon.json file has incorrect proxy #956

@dragonfriend0013

Description

@dragonfriend0013

Description

I use zscaler on my machine (M2 Mac), so my local proxy is set to 127.0.0.1:9000. during the colima start, it set the proxy variable to a 192.* address, but the daemon.json file still shows as the original 127 address. this should be updates with the updated address. i can manually update this through ssh, but it would be better if this is done when colima starts.

docker build does not have this issue, only docker compose and docker-compose

Version

colima version 0.6.7
git commit: ba1be00

runtime: docker
arch: x86_64
client: v24.0.7
server: v24.0.7
limactl version 0.19.1
qemu-img version 8.2.0
Copyright (c) 2003-2023 Fabrice Bellard and the QEMU Project developers

Operating System

  • macOS Intel <= 13 (Ventura)
  • macOS Intel >= 14 (Sonoma)
  • Apple Silicon <= 13 (Ventura)
  • Apple Silicon >= 14 (Sonoma)
  • Linux

Output of colima status

INFO[0000] colima is running using QEMU
INFO[0000] arch: x86_64
INFO[0000] runtime: docker
INFO[0000] mountType: sshfs
INFO[0000] socket: unix:///Users/jamurphy/.colima/default/docker.sock

Reproduction Steps

  1. colima delete
  2. colima start --arch x86_64
  3. docker compose up --detach (have an external image that must be pulled through proxy)

Expected behaviour

docker compose works

Additional context

env variable on Mac:
http_proxy=http://127.0.0.1:9000
https_proxy=http://127.0.0.1:9000

env variable on colima
https_proxy=http://192.168.5.2:9000
http_proxy=http://192.168.5.2:9000

daemon.json on colima
cat daemon.json
{
"exec-opts": [
"native.cgroupdriver=cgroupfs"
],
"features": {
"buildkit": true
},
"proxies": {
"http-proxy": "http://127.0.0.1:9000",
"https-proxy": "http://127.0.0.1:9000"
}
}
No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions