Closed
Description
The data persistence issue. I tried a local volume, yet the problem remains, like when I stop and restart the container, the data is lost.
I run this cmd: docker run -dt -p 10260:10260 -e USERNAME=Username -e PASSWORD=YourPassword -v documentdb-data:/data ghcr.io/microsoft/documentdb/documentdb-local:latest
Activity
xgerman commentedon Jun 17, 2025
Should be fixed by #209 - need to verify and then push a new version
guanzhousongmicrosoft commentedon Jun 17, 2025
Sorry for the inconvenience.
The issue is due to missing data path in the docker command, please use command below and try again:
docker run -dt -p 10260:10260 -e USERNAME=Username -e PASSWORD=YourPassword -e DATA_PATH=/data -v documentdb-data:/data ghcr.io/microsoft/documentdb/documentdb-local:latest
I have proposed a new feature backlog here to adjust default data path to /data since this is more common
guanzhousongmicrosoft commentedon Jun 17, 2025
TODO: Change default data path to /data
JeetMajumdar2003 commentedon Jun 18, 2025
Thank you, it is now functioning correctly.