usememos / memos

An open source, lightweight note-taking service. Easily capture and share your great thoughts.
https://usememos.com
MIT License
28.57k stars 2.13k forks source link

data is missing when I upgrade the docker image #3595

Open Kellermaan opened 1 week ago

Kellermaan commented 1 week ago

Describe the bug

Hi, I'm not sure what's wrong I'm doing here. I upgraded my docker image of memos, using the old data. when I finished the upgrade, all the memos are missing.

Steps to reproduce

just upgrade the docker image.

The version of Memos you're using

latest stable

Screenshots or additional context

No response

Zeng1998 commented 1 week ago

Backup your database file so that your data is never lost.

And please provide more context or logs.

RaphaelPour commented 1 week ago

Did you create a volume within your docker setup for your data? Otherwise it's not persistent, as the docker manual states:

By default all files created inside a container are stored on a writable container layer. This means that:

  • The data doesn't persist when that container no longer exists, and it can be difficult to get the data out of the container if another process needs it.