Hello everyone
I’m not sure if this is a docker issue, or not, but I wanted to post up here anyway, see if I can get some assistance.
I’m on MAC OS X 10.11.3, Docker version 1.10.3, build 20f81dd, docker-machine version 0.7.0-rc1, build 0fb68ca, virtualbox 5.0.16 r105871. This was also occurring on docker-machine version 0.6, I upgraded trying to fix it.
Basically, if I try to mount local volumes to persist data, like this
volumes:
- /Users/mjdavies/pgdata:/var/lib/postgresql/data
I get this
pcstudents_db_1 | fixing permissions on existing directory /var/lib/postgresql/data … ok
pcstudents_db_1 | initdb: could not create directory “/var/lib/postgresql/data/pg_xlog”: Permission denied
There seems to be a lot of issues on github about this, there’s little point putting them in here as there’s so many.
I’ve tried deleting the virtual machine, deleting ~/.docker, everything I can see apart from using this
I don’t really want to have to use something else, as I’m about to have to show 10 developers who have no experience of using docker how to use docker on their macs, and need to keep this all as simple as possible.
Could anyone shed any light on who needs to fix this? Is it mac, is it docker, is it virtualbox, is it all of them?
If anyone else has come up with a solution then please let me know, bit frustrating to bump into this to be honest.