Error message "It looks like you did not configure a persistent volume!"

Hello,

I am using docker desktop on Windows and I am getting this error message:

[vaultwarden][ERROR] No persistent volume!
It looks like you did not configure a persistent volume!
This will result in permanent data loss when the container is removed or updated!
If you really want to use volatile storage set I_REALLY_WANT_VOLATILE_STORAGE=true

It looks like I need to set it to true, but where exactly do I do this? I can’t find it.

Also what exactly is a persistent volume? Is it bad if I turn it off or on?

Thank you :blush:

That means that if you delete the container, you lose your storage a it is none-persistentant or ephemeral storage.

You either need to link a local directory as /data, or create a persistent volume, which still exists even if you delete the container.

You will need to delete a container if you want to update for example, so the next update you will do, you will lose your data.

Okay thank you.

I already tried to use a .vhdx or .vhd but it does not really work. How do link a local directory as /data, or create a persistent volume exactly?