qwertmax
qwertmax

Reputation: 3450

specify ip address for docker for mac

I'm using Docker for Mac Beta and it runs from spotlight.

Is there any way to run it from console or force to use any configuration file to specify ip address for docker host.

Right now it changing from 192.168.64.3 to 192.168.64.5 (each start of docker it can have any random IP)

probably I need to configure bridge interface?

com.docker.network.bridge.enable_ip_masquerade: true
com.docker.network.bridge.host_binding_ipv4: 0.0.0.0

Does anyone know how to do that?

Upvotes: 10

Views: 4817

Answers (1)

ldg
ldg

Reputation: 9402

You can connect to the Docker alpine host via unix socket but I have not been able to figure out how to bridge to the network.

The docs say:

Unfortunately, due to limtations in OSX, we’re unable to route traffic to containers, and from containers back to the host.

Because of the way networking is implemented in Docker for Mac, you cannot see a docker0 interface in OSX. This interface is actually within HyperKit.

Upvotes: 5

Related Questions