私はDocker for WindowsでCosmos DB Emulatorを稼働させようとしていますが、運が上がらないのです。私はここでコマンドを次のようしています:Docker for WindowsでCosmos DBエミュレータを実行するにはどうすればよいですか?
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:\>
は、ディレクトリが作成されますが、私はまだドッキングウィンドウrunコマンドで同じエラーを取得します。
私はそれをやっただけで、うまくいきました。元のコマンドと 'microsoft/azure-documentdb-emulator'の両方がうまくいきました。ドッカーをWindowsの\ containerに切り替えましたか? – 4c74356b41
私は窓のコンテナに切り替わっていないが、私はやったと私はまだエラーが発生しています。特定のエラーメッセージで質問を更新します。 – user1843640
私はすべての仮想ネットワークを削除し、最初からドッカーをインストールすることをお勧めします。 – 4c74356b41