Docker for Windows에서 Cosmos DB Emulator를 실행하려고하는데 행운이 없습니다. 나는 여기에 명령을 다음입니다 :Docker for Windows에서 Cosmos DB Emulator를 어떻게 실행합니까?
https://docs.microsoft.com/en-us/azure/documentdb/documentdb-nosql-local-emulator
특히 :
md %LOCALAPPDATA%\DocumentDBEmulatorCert 2>nul
docker run -v %LOCALAPPDATA%\DocumentDBEmulatorCert:c:\DocumentDBEmulator\DocumentDBEmulatorCert -P -t -i mominag/documentdb_emulator
나는 "잘못된 바인드 마운트"를 포함 도커에서 다양한 오류를 얻고있다. 명령 자체가 옳지 않아서 변경하려고 시도했습니다. mominag/documentdb_emulator
을 microsoft/azure-documentdb-emulator
으로 변경했으나 작동하지 않았습니다. 이것이 Docker를 처음 사용하는 데 실제로 도움이되지는 않습니다.
Microsoft 문서의 명령 소스처럼 보이는 GitHub에서 다음을 살펴 보았습니다.
https://github.com/Azure/azure-documentdb-emulator-docker
UPDATE : 는 여기에 내가 실행하고 명령과 반환되는 오류입니다. 나는 2>nul
을 제거하면
PS C:\> md %LOCALAPPDATA%\DocumentDBEmulatorCert 2>nul
out-file : FileStream was asked to open a device that was not a file. For support for devices like 'com1:' or 'lpt1:',
call CreateFile, then use the FileStream constructors that take an OS handle as an IntPtr.
At line:1 char:1
+ md %LOCALAPPDATA%\DocumentDBEmulatorCert 2>nul
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], NotSupportedException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
PS C:\> docker run -v %LOCALAPPDATA%\DocumentDBEmulatorCert:c:\DocumentDBEmulator\DocumentDBEmulatorCert -P -t -i docume
ntdb_emulator
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: invalid bind mount spec "%LOCALAPPD
ATA%\\DocumentDBEmulatorCert:c:\\DocumentDBEmulator\\DocumentDBEmulatorCert": invalid volume specification: '%LOCALAPPDA
TA%\DocumentDBEmulatorCert:c:\DocumentDBEmulator\DocumentDBEmulatorCert'.
See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.
PS C:\>
는 디렉토리 생성하지만 난 여전히 고정 표시기 실행 명령에서 동일한 오류가 발생합니다.
방금 해 봤는데 제대로 작동했습니다. 원래의 명령과'microsoft/azure-documentdb-emulator' 모두 정상적으로 작동했습니다. 도커를 windows 모드 \ 컨테이너로 전환 했습니까? – 4c74356b41
Windows 컨테이너로 전환하지 않았지만 방금 오류가 발생했습니다. 질문을 특정 오류 메시지로 업데이트합니다. – user1843640
나는 모든 가상 네트워크를 제거하고 처음부터 도커를 설치하는 것이 좋습니다. – 4c74356b41