Can we lose our data when a Docker Container exits?

Docker Container has its own file system. In an application running on Docker Container, we can write to this file system. When the container exits, data written to the file system still remains. When we restart the container, the same data can be accessed again. Only when we delete the container, related data will be deleted.