I have an OSX host with a postgreSQL database (actually experimenting with it for Redmine). All I want is to be able to keep data after I destroy a container so I'll be safe and I can re-deploy my repository fast.
If I try to add a local Volume in Kitematic, the container fails to start with error:
initdb: could not create directory "/var/lib/postgresql/data/pg_xlog/archive_status": Permission denied
initdb: removing contents of data directory "/var/lib/postgresql/data"
creating subdirectories ...
I've tried to chmod 777 -R the local folder but same result. Does anyone have any solution for this or anything else to suggest on saving/keeping data from postgreSQL and docker ?