-
Notifications
You must be signed in to change notification settings - Fork 122
Closed
Labels
bugSomething isn't workingSomething isn't workingdocumentdb-localfor documentdb-local related issuesfor documentdb-local related issuesgatewayfor gateway related issuesfor gateway related issues
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
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdocumentdb-localfor documentdb-local related issuesfor documentdb-local related issuesgatewayfor gateway related issuesfor gateway related issues
Type
Projects
Milestone
Relationships
Development
Select code repository
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.