datakind / dk-routing

Container-based Action Routing Tool (CART)
MIT License
8 stars 11 forks source link

Docker compatibility for mac (and likely windows too) #55

Closed blakeflei closed 5 months ago

blakeflei commented 6 months ago

When running locally on mac (and likely windows too) none of the container ports are available. This is likely because there is no docker0 bridge on MacOS or windows. The workaround, described in the docs (same link as above) is to use the hostname host.docker.internal.

This hostname should also work on a linux host, provided the host is added via: `--add-host=host.docker.internal:host-gateway'. (https://github.com/moby/moby/pull/40007#issuecomment-578729356, https://github.com/docker/for-linux/issues/264#issuecomment-598864064)

blakeflei commented 6 months ago

Submitted PR 56