making notes as I transition from DockerMachine/VBox to Docker for Mac https://blog.bennycornelissen.nl/docker-for-mac-neat-fast-and-flawed/
- Should DBs live inside D4M and use bind mount for Data (this makes setup for others MUCH easier) -OR- Use Host DBs
- Where should code live and how to inject source dir into Compose. Could use a single env var that is customizable. i.e.
export D4M_DEV_SOURCE="/Users/hbeaver/code"
kernel running on D4M is Moby, not the distro you have in your image.
root@ddb00cb996cc:/proc# more version
Linux version 4.9.13-moby (root@11fbdc1f630f) (gcc version 6.2.1 20160822 (Alpine 6.2.1) ) #1 SMP Sat Mar 25 02:48:44 UTC 2017
sudo ifconfig lo0 alias 172.16.1.1
Add the following to your pg_hba.conf
file.
host all all 172.16.1.1/24 trust
Restart PG
brew services restart postgresql
Using Docker for Mac PG can easily write to OSX disk. Previously, this was a major pain in the ass.