Mac 上的 Cosmos DB 模拟器安装

问题描述 投票:0回答:2
ipaddr="`ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}' | head -n 1`"

docker pull mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator

docker run \
    --publish 8081:8081 \
    --publish 10250-10255:10250-10255 \
    --memory 3g --cpus=2.0 \
    --name=test-linux-emulator1 \
    --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

我按照这些步骤操作,但出现此错误

./cosmosdb-emulator: ERROR: Invalid mapping of address 0x40037db000 in reserved address space below 0x400000000000. Possible causes:
1) the process (itself, or via a wrapper) starts-up its own running environment sets the stack size limit to unlimited via syscall setrlimit(2);
2) the process (itself, or via a wrapper) adjusts its own execution domain and flag the system its legacy personality via syscall personality(2);
3) sysadmin deliberately sets the system to run on legacy VA layout mode by adjusting a sysctl knob vm.legacy_va_layout.

Mac 芯片:Apple M1 Pro

azure-cosmosdb
2个回答
6
投票

来自官方文档

模拟器仅支持配备 Intel 处理器的 MacBook。

模拟器不支持您使用的Apple M1 Pro。

MS 团队非常清楚其不断增长的程度 所带来的问题


0
投票

我写了一篇关于如何让它在我的 Mac M3 Pro 上运行的文章。

https://medium.com/p/37f4abd96bdf

© www.soinside.com 2019 - 2024. All rights reserved.