Я использую Docker версии 18.03.1-ce на компьютере с Windows 10. У меня есть следующий DOCKERFILE:
FROM microsoft/dotnet:2.1-sdk
# setup powershell options for RUN commands
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';$ProgressPreference = 'Continue';"]
RUN MKDIR -p "c:\\node"
Выше выдает ошибку следующим образом:
Running in 61c2553fbefd
container 61c2553fbefdbe3f4dabb652f4d39b3761d5124b4ccc97090586bbf4e5e4d0fe encountered an error during CreateProcess: failure in a Windows system call: The system cannot find the file specified. (0x2) extra info: {"CommandLine":"powershell -Command $ErrorActionPreference = 'Stop';$ProgressPreference = 'Continue'; MKDIR -p \"c:\\\\node\"","User":"ContainerUser","WorkingDirectory":"C:\\","Environment":{"ASPNETCORE_URLS":"http://+:80","DOTNET_RUNNING_IN_CONTAINER":"true","DOTNET_USE_POLLING_FILE_WATCHER":"true","NUGET_XMLDOC_MODE":"skip"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}
Я попытался удалить "-p", но проблема все еще не исчезла. Кто-нибудь испытывал это?