简体   繁体   English

开发容器未在 VSCode 中启动

[英]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.

相关问题 VSCode - docker 上的开发容器未运行 - VSCode - Dev container on docker not running VSCode 跟踪开发容器子目录中的 git 存储库 - VSCode tracking git repos in subdirectories of dev container 如何在 vscode 上使用开发容器时查看 docker compose 日志 - How to view docker compose logs while using dev container on vscode 在 VScode 开发容器的文件夹内安装 requirements.txt - Installing requirements.txt inside of a folder in a VScode dev container vscode 开发容器环境变量不暴露给 docker-compose - vscode dev container environment variables not exposing to docker-compose VSCode docker 开发容器无法访问~/.ssh - VSCode docker dev container can't access ~/.ssh 启动容器过程导致“ exec:\\\\” tail -f / dev / null \\\\”:统计信息尾巴-f / dev / null:无此类文件或目录 - Starting container process caused “exec: \\”tail -f /dev/null\\": stat tail -f /dev/null: no such file or directory VSCode 远程容器 - 未使用 docker-compose 在开发容器上安装扩展 - VSCode Remote Container - extensions not installing on dev container using docker-compose VSCode:如何从我的开发容器内推送到外部 Git 服务器? - VSCode: how to push to external Git server fom inside my dev container? 如何在 VSCode 远程开发容器中处理多个“network_mode”? - How to deal with more than one `network_mode` in a VSCode Remote dev container?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM