Skip to content
Back

Strange issue when shutting down the container

  • 0
  • Self Hosted
WhMonkey
7 Nov, 2024, 15:12

Hello!

I've encountered a strange issue (but it also kinda makes sense). In the past, to turn off my Appwrite instance, I ran sudo docker compose down -v and when I started it again with sudo docker compose up -d, everything worked fine.

However, now when I run down -v and I start it again, all of my data is lost. It makes sense though as the down command also seems to take down the volumes, but why do this if the data is stored in the volumes.

TL;DR
Issue: When shutting down the container with 'sudo docker compose down -v' and starting it again, data is lost. Solution: When shutting down the container, avoid using the '-v' flag to prevent volume deletion and data loss. Instead, use 'sudo docker compose down' to keep the data intact.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more