Docker Community Forums

Share and learn in the Docker community.

FIles are getting lost in container

I created files in a container after I reconnect it. I am new to Dockers.
What is the benefit if you are losing the data if you exit and reconnect it again
Is the case same if I use any Database Docker
What it would be if I created a table/index in container will it dropped as well?

What does reconnect mean for you?

A container is ment to be ephemeral/disposable. Persistant data is ment to be stored in (docker) volumes.