how to properly use apt-get for dev container?
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
调研方向
从 Dockerfile 和 devcontainer.json 开始,通过取消 apt-get 命令的注释来复现失败,并检查完整的 Docker build 输出,而不仅仅是 VS Code 堆栈跟踪。完成的标准是:dev container 在安装所请求的软件包后能够成功构建,并且生成的容器能够正常启动。
由索引模型根据 Issue 内容生成。
描述
I currently use devcontainer.json with
FROM mcr.microsoft.com/devcontainers/python:1-3.10-buster
#FROM python:3.10-slim
USER root
#RUN sudo apt-get update# \
# && apt-get -y install tesseract-ocr \ # required for pytesseract
as Dockerfile. Every time i uncomment RUN sudo apt-get update dev container is staring with exception. What may be appropriate solution? Exception:
[2024-06-13T17:14:16.780Z] Stop (5071 ms): Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f C:\Users\faQ\AppData\Local\Temp\devcontainercli\container-features\0.62.0-1718298849701\Dockerfile-with-features -t vsc-meduzzen_cv_internship-5423384e0a528bb79615ca79de36d2f7ec3f7bcdedd85db936ad2e8fb325b818 --target dev_containers_target_stage --build-context dev_containers_feature_content_source=C:\Users\faQ\AppData\Local\Temp\devcontainercli\container-features\0.62.0-1718298849701 --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp p:\projects\programming\ds\cv\meduzzen_cv_internship\.devcontainer
[2024-06-13T17:14:16.781Z] Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f C:\Users\faQ\AppData\Local\Temp\devcontainercli\container-features\0.62.0-1718298849701\Dockerfile-with-features -t vsc-meduzzen_cv_internship-5423384e0a528bb79615ca79de36d2f7ec3f7bcdedd85db936ad2e8fb325b818 --target dev_containers_target_stage --build-context dev_containers_feature_content_source=C:\Users\faQ\AppData\Local\Temp\devcontainercli\container-features\0.62.0-1718298849701 --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp p:\projects\programming\ds\cv\meduzzen_cv_internship\.devcontainer
[2024-06-13T17:14:16.782Z] at mtA (c:\Users\faQ\.vscode\extensions\ms-vscode-remote.remote-containers-0.369.0\dist\spec-node\devContainersSpecCLI.js:465:1933)
[2024-06-13T17:14:16.782Z] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[2024-06-13T17:14:16.782Z] at async Pm (c:\Users\faQ\.vscode\extensions\ms-vscode-remote.remote-containers-0.369.0\dist\spec-node\devContainersSpecCLI.js:464:1841)
[2024-06-13T17:14:16.782Z] at async NH (c:\Users\faQ\.vscode\extensions\ms-vscode-remote.remote-containers-0.369.0\dist\spec-node\devContainersSpecCLI.js:464:610)
[2024-06-13T17:14:16.782Z] at async KtA (c:\Users\faQ\.vscode\extensions\ms-vscode-remote.remote-containers-0.369.0\dist\spec-node\devContainersSpecCLI.js:481:3692)
[2024-06-13T17:14:16.782Z] at async eB (c:\Users\faQ\.vscode\extensions\ms-vscode-remote.remote-containers-0.369.0\dist\spec-node\devContainersSpecCLI.js:481:4807)
[2024-06-13T17:14:16.783Z] at async hrA (c:\Users\faQ\.vscode\extensions\ms-vscode-remote.remote-containers-0.369.0\dist\spec-node\devContainersSpecCLI.js:661:13373)
[2024-06-13T17:14:16.783Z] at async lrA (c:\Users\faQ\.vscode\extensions\ms-vscode-remote.remote-containers-0.369.0\dist\spec-node\devContainersSpecCLI.js:661:13114)
[2024-06-13T17:14:16.799Z] Stop (8648 ms): Run: P:\soft\programming\Microsoft VS Code\Code.exe c:\Users\faQ\.vscode\extensions\ms-vscode-remote.remote-containers-0.369.0\dist\spec-node\devContainersSpecCLI.js up --user-data-folder c:\Users\faQ\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\data --container-session-data-folder /tmp/devcontainers-7c420d15-3339-43ce-bb22-c54f635d28b31718298842474 --workspace-folder p:\projects\programming\ds\cv\meduzzen_cv_internship --workspace-mount-consistency cached --id-label devcontainer.local_folder=p:\projects\programming\ds\cv\meduzzen_cv_internship --id-label devcontainer.config_file=p:\projects\programming\ds\cv\meduzzen_cv_internship\.devcontainer\devcontainer.json --log-level debug --log-format json --config p:\projects\programming\ds\cv\meduzzen_cv_internship\.devcontainer\devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root
[2024-06-13T17:14:16.800Z] Exit code 1
[2024-06-13T17:14:16.806Z] Command failed: P:\soft\programming\Microsoft VS Code\Code.exe c:\Users\faQ\.vscode\extensions\ms-vscode-remote.remote-containers-0.369.0\dist\spec-node\devContainersSpecCLI.js up --user-data-folder c:\Users\faQ\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\data --container-session-data-folder /tmp/devcontainers-7c420d15-3339-43ce-bb22-c54f635d28b31718298842474 --workspace-folder p:\projects\programming\ds\cv\meduzzen_cv_internship --workspace-mount-consistency cached --id-label devcontainer.local_folder=p:\projects\programming\ds\cv\meduzzen_cv_internship --id-label devcontainer.config_file=p:\projects\programming\ds\cv\meduzzen_cv_internship\.devcontainer\devcontainer.json --log-level debug --log-format json --config p:\projects\programming\ds\cv\meduzzen_cv_internship\.devcontainer\devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root
[2024-06-13T17:14:16.806Z] Exit code 1
- 主要语言
- Shell
- 星标
- 1.4k
- 派生
- 393
- 平均合并
- 4 天 4 小时
- 30 天内合并 PR
- 5
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
devcontainers/templates 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 55/100
devcontainers/templates#420 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 20/100
devcontainers/templates#410 ·
维护者通常 1 天内回复
-
git-lfs not found/usable/configured correctly in Python image(s), preventng any git action可能重新可做 @V-Subhankar-infy 于 60 天前认领,目前没有进行中的 PR。 未关闭info-needed
devcontainers/templates#427 · 6 条评论 · 1 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
devcontainers/templates#375 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
devcontainers/templates#326 ·
维护者通常 1 天内回复
查看 devcontainers/templates 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
YosysHQ/oss-cad-suite-build#216 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
ekalinin/github-markdown-toc#167 ·
-
out-of-date
难度 1/5 1 小时以内 新手友好度 82/100
CachyOS/CachyOS-PKGBUILDS#1917 ·
维护者通常 1 天内回复
-
package-update
难度 2/5 1-3 小时 新手友好度 78/100
-
bug needs triage
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复