You need to mount volumes from the host system or docker volumes to container to have data persisted.
See section "Where to Store Data” in https://hub.docker.com/_/cassandra <https://hub.docker.com/_/cassandra> Hannu > On 9. Mar 2020, at 11.25, Valentina Ivanova <valentina.ivan...@ri.se> wrote: > > Hello! > > I am using Cassandra 3.11.5 from docker. I created a keyspace and a table in > it and inserted some data into the table. Before stopping the container I > executed nodetool flush to persist the data. However, upon starting the > container after the weekend, the keyspace, table and data were not existent. > What shall I do in order to persist the data? > > Many thanks & have a great week! > > Valentina