I solved this problem by following steps :
Open cmd and run following steps :
run this command
docker ps -a
it should show something like this if you have installed appwrite correctly.
[Output for executed command] : https://i.stack.imgur.com/7kuxo.png
Check if docker is running or not by this command docker compose ls
[Output for executed command] : https://i.stack.imgur.com/uljt3.png
Run dir appwrite (for windows) ls appwrite (for mac)
[Output for executed command] : https://i.stack.imgur.com/y7t01.png
Now navigate to folder where appwrite is installed (In my case c:\Users\Admin\appwrite) If you don't know where your appwrite is installed then when you run dir appwrite or ls appwrite it will show you where your appwrite is installed.
Now run this following commands
- go into that folder (cd appwrite)
- remove containers and all data (docker compose down -v)
- start appwrite again (docker compose up -d)
Done