abiosoft / colima

Container runtimes on macOS (and Linux) with minimal setup
MIT License
19.02k stars 383 forks source link

Start colima with host networking #254

Open mirza-ali-ctct opened 2 years ago

mirza-ali-ctct commented 2 years ago

Is it possible to start colima VM with host networking enabled? With minikube minikube ip we used to reach LoadBalancer services.

abiosoft commented 2 years ago

This will be part of the next release, which is imminent.

weijiany commented 2 years ago

I want to run a docker container with a host network, the docker container could access the localhost address, but it will access the lima VM rather than my mac.

abiosoft commented 2 years ago

@weijiany you can always reach the host mac at 192.168.5.2 or host.docker.internal.

egze commented 2 years ago

Does --network-address enable the host networking? What exactly should I expect when I use it?

What I'm trying to figure out is the equivalent of minikube ip in colima.

abiosoft commented 2 years ago

Does --network-address enable the host networking? What exactly should I expect when I use it?

What I'm trying to figure out is the equivalent of minikube ip in colima.

@egze it provides a reachable IP address to the VM. Which you can verify by running colima list.