colima icon indicating copy to clipboard operation
colima copied to clipboard

Add possibility of specifying the gateway address

Open Guilospanck opened this issue 2 months ago • 3 comments

Description

When connected to a VPN that has the same Gateway (192.168.5.2) as colima/lima, I couldn't reach out to services in the other side from inside the container. Guess is the conflict of addresses.

  • VPN has the same gateway address as colima (192.168.5.2);
  • Tries to pull docker image from private registry only accessible via the VPN, which needs to pass through the gateway;
  • Not possible.

P.S.: I have made some changes here and passing a different GW fixed my problem when using this version, still not sure if this is even needed. If it is, glad to contribute.

Guilospanck avatar Oct 19 '25 19:10 Guilospanck

Hi, thanks for taking a dig at working around the issue.

Your solution is actually accurate (or at least close enough). I am a bit occupied at the moment and would have another look soon :)

abiosoft avatar Oct 21 '25 07:10 abiosoft

@Guilospanck can you create a pull request?

abiosoft avatar Nov 11 '25 04:11 abiosoft

Done @abiosoft

Guilospanck avatar Nov 11 '25 12:11 Guilospanck