@Jef Schraag-Halma Thank you for reaching out.
It seems like you are trying to build a Docker image based on the Azure Cosmos DB Emulator for Linux. However, the Dockerfile you provided does not seem to start the emulator process correctly and failing with a message that nothing is available at port 8081.
Please try the below. I assume that you are using SQ API
docker run \
--publish 8081:8081 \
--publish 10250-10255:10250-10255 \
--memory 3g --cpus=2.0 \
--name=test-linux-emulator \
--env AZURE_COSMOS_EMULATOR_PARTITION_COUNT=10 \
--env AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE=true \
--env AZURE_COSMOS_EMULATOR_IP_ADDRESS_OVERRIDE=$ipaddr \
--interactive \
--tty \
mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator
OR try increasing the sleep time in your Dockerfile to give the emulator more time to start up. For example, you can try changing the sleep 20
command to sleep 30
or sleep 60
to see if that helps.
More troubleshooting tips:
- Verify that the specific emulator container is in a running state.
- Verify that no other applications are using emulator ports:
8081
and10250-10255
. - Verify that the container port
8081
, is mapped correctly and accessible from an environment outside of the container.
Run the emulator on Docker for Linux (Preview)
Let me know if you are still having problems.
Regards,
Oury