我刚刚用这个url docker setup安装了cosmos db。
我有这个文件夹%LOCALAPPDATA%\CosmosDBEmulator\bind-mount,并且我安装了我刚接触docker的证书。我需要使用下面的命令停靠运行吗?如何找到https://??/_explorer/index.html?当我运行容器时,我得到一个错误:
C:\>
C:\>docker run --name azure-cosmosdb-emulator --memory 2GB --mount
"type=bind,source=%LOCALAPPDATA%\CosmosDBEmulator\bind-
mount,destination=C:\CosmosDB.Emulator\bind-mount" --interactive --tty -p
8081:8081 -p 8900:8900 -p 8901:8901 -p 8902:8902 -p 10250:10250 -p
10251:10251 -p 10252:10252 -p 10253:10253 -p 10254:10254 -p 10255:10255
-p 10256:10256 -p 10350:10350 microsoft/azure-cosmosdb-emulator
docker: Error response from daemon: Conflict. The container name "/azure-cosmosdb-emulator" is already in use by container
"a7566570305eb1adf7c0f41a73e9e73c17ae061a6333123f2b121947ab3658ca". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.发布于 2019-07-20 00:23:25
您可能让这个容器在您的docker系统中休眠。您可以执行以下命令查看所有容器,包括休眠容器。
docker container ls -a在您的示例中,您可以直接运行
docker start azure-cosmosdb-emulator重新启动CosmosDB仿真器。
当CosmosDB模拟器作为docker镜像运行时,您可以使用以下网址访问它:
https://localhost:8081/_explorer/index.html我已经在这篇blog post中写了更多关于Docker的CosmosDB模拟器。
https://stackoverflow.com/questions/56603854
复制相似问题