Reach Docker Host From Container

This is the best way I’ve found to set up for a container to contact the host machine.

sudo ifconfig lo0 alias

Now you can use the IP to contact your local host machine. Might want to store that in an environment variable.

Note: I had written a much longer, more indepth post, but a few unfortunate key strokes in Vim obliterated much of the post…