azure-cosmos-db-emulator-docker
azure-cosmos-db-emulator-docker copied to clipboard
Running Cosmos Emulator in background
I am attempting to start the Cosmos DB emulator during a build process, but I'm not having success when I try to start the emulator in detached code. The only way I can keep it running is to have a terminal connected (i.e., docker run -it).
What is the recommended way to start the emulator in the background?
@erick-thompson I've been able to run it in detached mode (though I'm using Docker compose). You have to make sure a pseudo-TTY is enabled, even in detached mode. Does docker run -d -t help?
I have this same issue. I opened an issue with the Cosmos SDK folks here: https://github.com/Azure/azure-cosmos-dotnet-v3/issues/929 but I haven't heard anything back in a while. One thing they pointed out though is that Azure DevOps does support the Cosmos emulator, so it seems likely that they must have an option like this.
If I can get it running through Docker on a Windows VM I will try what you suggested @tjrobinson.