-
-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker proxy settings problem #1040
Comments
I use docker desktop for mac and orbstack to configure docker proxy and it works |
colima.yaml configures provision, the specific contents are as follows
|
go to the last line env:
http_proxy: http://192.168.5.2:7890
https_proxy: http://192.168.5.2:7890
no_proxy: localhost,192.168.5.2 quit then execute command
it works for me |
I have tried this method, but the colima virtual machine still does not use the proxy network. |
Then I changed to the following method and it worked again.
The .bash_profile file is configured
|
Did u use http://192.168.5.2:7890 Or http://127.0.0.1:7890 ? |
At first, I configured 127.0.0.1:7890 in the env property. Later, I saw similar problems in other issues and changed it to 192.168.5.2:7890. I found that no proxy was used. |
thanks |
I tried the steps and found that the proxy was still not used. |
Description
The daemon.json file does not take effect.
daemon.json configures the following content.
Version
colima version 0.6.9
git commit: c3a31ed
runtime: docker
arch: aarch64
client: v26.1.4
server: v26.1.1
qemu-img version 9.0.0
Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers
limactl version 0.22.0
Operating System
Output of
colima status
INFO[0000] colima is running using QEMU
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: sshfs
INFO[0000] socket: unix:///Users/{UserName}/.colima/default/docker.sock
Reproduction Steps
1.modify the daemon.json file to configure docker proxy
2.colima stop and colima start
3.after colima start, it is found that the proxy configured in daemon.json is not effective
Expected behaviour
After configuring docker proxy in daemon.json, the proxy should be used directly. However, when docker search or docker pull, it always shows proxyconnect tcp: dial tcp 127.0.0.1:7890: connect: connection refused.
Specific commands.
Additional context
No response
The text was updated successfully, but these errors were encountered: