-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Struggling to use data volume #6
Comments
The advice seems to be to use a data volume container, rather than a dir on the host: But this has it's own difficulties... eg in fig.yml I have
but I still get:
it seems related to moby/moby#6137 though that is marked fixed some non-fig experiments:
in other words postgres expects this dir to be owned by ok, so what if I make a Dockerfile like this for my data volume container:
and
then I get:
but It looks to me like something in |
your Dockerfile has:
adding it has to happen in the |
I made a workaround here: anentropic@e465078 what do you think of this approach? |
Hi @anentropic I used a host volume (not a volume container though that should work fine too) successfully both with fig and with bash scripts to orchestrate. e.g. https://github.com/AIFDR/inasafe-django uses fig and host volume. Note that fig has an irritation in that I don't see how to get it to wait for the db cluster to be initialised before it brings up subsequent containers. Using your approach seems fine - we can probably fix the SSL permissions error in that script too (see #3 ) Feel free to make a PR and I will apply it. Regards Tim |
thanks, I think the problem with host volume may be specific to running under boot2docker (even with AFAIK fig will use the |
Hmm I am running Linux here so I don't have a way to test with boot2docker. |
I think it's probably not fixable in the context of this project, needs fixing within boot2docker or manual hacks of the virtualbox vm configuration |
Ok - I'll close this issue out - feel free to re-open if you have some fresh ideas on how I can structure things to make it work for you. Regards Tim |
"You need to ensure the postgres_data directory has sufficient permissions for the docker process to read / write it."
The
./postgres_data/9.3
dir gets created but it fails as aboveHow do I do this?
The text was updated successfully, but these errors were encountered: