'How to check if the Cosmos DB emulator in a Docker container is done booting?

We use the Cosmos DB emulator in a Docker container. The container is started together with the test. Sometimes during the first test, there is a read timeout when connecting and the tests are aborted. Is there any check we can run before the tests to verify that the Cosmos DB has completed initialization? For example by querying a specific URL?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source