Skip to content
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

How can I save database changes to the server? #18

Closed
alperendurmus opened this issue May 18, 2019 · 3 comments
Closed

How can I save database changes to the server? #18

alperendurmus opened this issue May 18, 2019 · 3 comments

Comments

@alperendurmus
Copy link

Hello!
When I restart my server or remove the container (via the docker rm myXampp), all database changes are lost. How do I save database changes to the server?

@tomsik68
Copy link
Owner

Hi,
if you remove the container (as in docker rm [id]), the whole filesystem is destroyed. That means, any changes to the container are lost by definition. You can make your own version of the Dockerfile with an SQL script that sets up the database the way you want it.

Restarting the server shouldn't lose all database changes, but I don't know what is the cause here, sorry :(

@izzatzr
Copy link
Contributor

izzatzr commented Aug 3, 2019

Hello!
When I restart my server or remove the container (via the docker rm myXampp), all database changes are lost. How do I save database changes to the server?

have you tried docker commit to apply changes ?

@tomsik68
Copy link
Owner

tomsik68 commented Dec 7, 2020

I'm closing this issue since it received no activity in a long time. Should this issue be up-to-date, feel free to re-open it. Thank you.

@tomsik68 tomsik68 closed this as completed Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants