While installing cosmosdb emulator locally with docker, container exits immediately

Aryan Raj 0 Reputation points
2023-10-16T15:59:41.4933333+00:00

I have set up docker and trying to run cosmos db emulator locally on my m2 mac,
pulled image from mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest

when running following command to start the container

docker run --platform linux/amd64 \
    --publish 8081:8081 \
    --publish 10250-10255:10250-10255 \
    -m 2g --cpus=2.0 --name=cosmosdb \
    -e AZURE_COSMOS_EMULATOR_PARTITION_COUNT=2 \
    -e AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE=true \
    --interactive \
    --tty \
    mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest

It is giving log as This is an evaluation version.  There are [21] days left in the evaluation period. and exits immediately afterwards

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,901 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 29,542 Reputation points Microsoft Employee Moderator
    2023-10-16T20:21:45.0933333+00:00

    Hi, @Aryan Raj Welcome to Microsoft Q&A thanks for posting your question

    I understand that the logs displayed as This is an evaluation version.  There are [21] days left in the evaluation period. and exits immediately afterward

    Yes, the message "There are [21] days left in the evaluation period" is simply a placeholder message that is displayed during the preview period of the Cosmos DB emulator.

    If you have any further questions or concerns,please do let me know

    Regars

    Geetha


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.