-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Fig apparently not using volume_from on mysql service #579
Comments
Docs for how to mount a data volume in Docker: https://docs.docker.com/userguide/dockervolumes/ You are missing the local path on the host To answer your question on if you should host the data in the docker image: I would say any data store that you lose would cause more than service degradation you should protect against. You can accomplish this through clustering (multiple containers across multiple physical hosts in MM or MS setup) and/or data volumes from the local host. I would recommend using a volume and clustering if needed. |
I read on the docs (http://www.fig.sh/yml.html) on volumes section that you can do something like this. volumes:
- /var/lib/mysql
- cache/:/tmp/cache
- ~/configs:/etc/configs/:ro @sge-babrams So, this is a typo? |
I believe your issue is about |
@wlepinski takeing a closer look that seems fine. |
I just ran into this issue; Is there any reason that |
It's being worked on in #686, I think that is a bug |
I believe this was fixed by #1076 Please re-open if you're able to reproduce with the latest version |
http://stackoverflow.com/questions/26532003/fig-apparently-not-using-volume-from-on-mysql-service
I'm trying to setup a very simple setup of a mysql database using a data-container as repository using Fig.sh and Docker.
The code below is self-explanatory:
For some reason, if I run a command
fig run --rm dbdata /bin/sh
and then I cd into the directory /var/lib/mysql. The folder is empty. If I runfig run --rm db /bin/sh
and cd into /var/lib/mysql the database is being created there.What am I doing wrong here? And taking advantage of the question, is this the correct setup or I should let the data inside the mysql container?
Thanks.
The text was updated successfully, but these errors were encountered: