Docker Community Forums

Share and learn in the Docker community.

New to Docker, Rebuild Database?

(Chrisclevercoding) #1

I’m new to docker so forgive my ignorance. If I make code changes then rebuild the app and publish the image, then run docker stack deploy ... will that destroy the DB and rebuild it from scratch (don’t want to lose data)? Asking because I was given this python project that uses docker. I just need to make code changes and push those changes to the live server. Never used docker before. I’m used to pushing my changes to Git and then pulling those changes to the live server.