At first, I use: docker run -d -p 8080:80 nextcloud pull the nextcloud docker image and run it.
Then I have setup nextcloud, mariadb and admin account. And then login, it's good.
Then I reboot my ubuntu system(without stop docker, straight reboot system).
I restart the nextcloud docker, using :
docker run -d -p 8080:80 nextcloud
to start up the nextcloud image again(already on my computer, not pull again), then visit :
http://localhost:8080
nextcloud needs to setup again, setup admin account and mariadb again.
Could someone know how to fix this? Or I did something wrong?
Environment:
ubuntu 18
docker-ce(lastest from apt install)
mariadb 10.1(from apt, database is good to run)
docker image:
nextcloud(official image)
This should be reopened. The persistent-data url doesn't help.
This is affecting me too. Whenever I reboot my Raspberry Pi 3B and restart the docker containers, Nextcloud resets itself. I need to keep rescanning data with docker exec --user abc nextcloud php /config/www/nextcloud/occ files:scan --all and rebuilding my shares on my desktop client. I've got an external HDD connected, and it syncs/reads/writes just fine once I go through these steps.