[英]Dev Container is not starting in VSCode
Hi Guys I'm trying to open the dev container from https://github.com/microsoft/vscode-remote-try-cpp and I get an error message when creating it.嗨,伙计们,我正在尝试从https://github.com/microsoft/vscode-remote-try-cpp打开开发容器,并在创建它时收到一条错误消息。
It is also saying that this command is failing:它也说这个命令失败了:
C:\Program Files\Docker\Docker\Resources\bin\docker.exe run -a STDOUT -a STDERR --mount type=bind,source=c:/Users/jnvie/vscode-remote-try-cpp,target=/workspaces/vscode-remote-try-cpp,consistency=cached -l vsch.quality=stable -l vsch.local.folder=c:\Users\jnvie\vscode-remote-try-cpp -l vsch.remote.devPort=0 -u vscode --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --entrypoint /bin/sh vsc-vscode-remote-try-cpp-a8dfd3c1511c138f783ff7d36d26f76c -c echo Container started ; while sleep 1; do :; done
with this error message:带有此错误消息:
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
Run: docker run -a STDOUT -a STDERR --mount type=bind,source=c:/Users/jnvie/vscode-remote-try-cpp,target=/workspaces/vscode-remote-try-cpp,consistency=cached -l vsch.quality=stable -l vsch.local.folder=c:\Users\jnvie\vscode-remote-try-cpp -l vsch.remote.devPort=0 -u vscode --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --entrypoint /bin/sh vsc-vscode-remote-try-cpp-a8dfd3c1511c138f783ff7d36d26f76c -c echo Container started ; while sleep 1; do :; done
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: Drive sharing failed for an unknown reason.
See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.
My system is running windows 10 pro and I previously had docker toolbox running before I upgraded and got docker desktop for windows我的系统正在运行 windows 10 pro 并且我之前运行过 docker 工具箱,然后我升级并获得了 docker 桌面 docker25B50454D
I experienced that issue before I ran into the issue I'm on now.在遇到我现在遇到的问题之前,我遇到了这个问题。 I had to authorize the directory for access, but there are a handful of caveats that you might run into.
我必须授权访问该目录,但您可能会遇到一些警告。 This article covered a lot of them for me: https://blogs.msdn.microsoft.com/stevelasker/2016/06/14/configuring-docker-for-windows-volumes/
这篇文章为我介绍了很多: https://blogs.msdn.microsoft.com/stevelasker/2016/06/14/configuring-docker-for-windows-volumes/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.