colima icon indicating copy to clipboard operation
colima copied to clipboard

docker: replace also localhost with host gateway ip in docker daemon.json

Open fralken opened this issue 9 months ago • 0 comments

This improves PR #1145 by replacing any loopback address, not only 127.0.0.1 but also localhost with the host gateway. In my case my proxy is configured as localhost, and it listens both on 127.0.0.1 (IPv4) and ::1 (IPv6).

The implementation logic is the same as in lima.

This addresses issue #956.

In my opinion in no-proxy env variable references to localhost should not be replaced, because in this case it refers to the loopback of the container.

fralken avatar Apr 08 '25 13:04 fralken