azure-cosmos-db-emulator-docker icon indicating copy to clipboard operation
azure-cosmos-db-emulator-docker copied to clipboard

Running Cosmos Emulator in background

Open erick-thompson opened this issue 7 years ago • 2 comments

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 avatar Dec 04 '18 23:12 erick-thompson

@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?

tjrobinson avatar Apr 29 '19 11:04 tjrobinson

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.

pseudoramble avatar Nov 06 '19 18:11 pseudoramble