-
Notifications
You must be signed in to change notification settings - Fork 261
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
Rearding mysql directory ! #98
Comments
Hi. Please see the "Persisting your MySQL" section in Readme. |
OK, I got your point. Please see the discussions in Docker commit should retain container data in volumes too and Commit content of mounted volumes as well.
IMO, maybe you should manually store and compress your data outside the container and send it to others. |
Hi @karniv0re-cyber I have to agree with @pzhlkj6612 here, volumes are inherently external to the container so should be sent seperately |
HI, thanks @pzhlkj6612 for pointing me to this thread. |
@smalldragoon If I understand you correctly, you want to deliver the same code and database everytime, and users won't be developing on this server? I think you could add the files in your Dockerfile when building the image, and not connect the respective directories as volumes when running the image. I think this is a bit antithetical to how docker works, and might not work at all, but you could try it. |
@freakpants yes, . I did this, removed the link to /app and installed my files and mysql in /var/www/html. |
hey, whatever works for you :) I'm not going to pretend my environment is always best practice :D |
Im am building the project using your Dockerfile. The issue is, initially MYSQL directory does not exists. After running the image, MYSQL directory is made and all the required files are installed. When a new database is created, it gets reflected in the MYSQL directory and works as charm.
ISSUE:
But when the project is pushed to Docker Hub and somebody pulls to use it, contents of MYSQL directory are not copied in /var/lib/mysql. Hence the web app doesn't work.
PS: I first upload the project on GitHub, then I tag the repository to Docker Hub and Docker Hub auto builds the docker using the Dockefile.
Please suggest me any solution for this.
The text was updated successfully, but these errors were encountered: