Kubernetes - Local Configuration (kubernetes-helm) doesn't work on Windows
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- docker, helm, kubernetes, shell
- 领域
- devops, infrastructure, tooling
调研方向
使用已记录的 .devcontainer/devcontainer.json 设置在 Windows 上复现该模板,然后检查 .devcontainer/local-features/copy-kube-config 和 ensure-mount-sources 命令。从报告的本地磁盘 feature path-parse 错误开始;完成的标准是 Kubernetes - Local Configuration 模板能够在没有该错误的情况下完成初始化。
由索引模型根据 Issue 内容生成。
描述
When using the "Kubernetes - Local Configuration" (kubernetes-helm) Dev Container Template on Windows, an error occurs.
Example of Error:
[67 ms] Dev Containers 0.266.1 in VS Code 1.74.3 (97dec172d3256f8ca4bfb2143f3f76b503ca0534).
[66 ms] Start: Resolving Remote
[89 ms] Setting up container for folder or workspace: c:\path\to\project
[93 ms] Start: Check Docker is running
[94 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[417 ms] Server API version: 1.41
[419 ms] Start: Run: docker volume ls -q
[840 ms] Start: Run: docker ps -q -a --filter label=vsch.local.folder=c:\path\to\project --filter label=vsch.quality=stable
[1157 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=c:\path\to\project
[1506 ms] Start: Run: C:\Users\username\AppData\Local\Programs\Microsoft VS Code\Code.exe --ms-enable-electron-run-as-node c:\Users\username\.vscode\extensions\ms-vscode-remote.remote-containers-0.266.1\dist\spec-node\devContainersSpecCLI.js up --user-data-folder c:\Users\username\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\data --workspace-folder c:\path\to\project --workspace-mount-consistency cached --id-label devcontainer.local_folder=c:\path\to\project --log-level debug --log-format json --config c:\path\to\project\.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 true
[1751 ms] (node:26548) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[1751 ms] (Use `Code --trace-deprecation ...` to show where the warning was created)
[1754 ms] @devcontainers/cli 0.25.2. Node.js v16.14.2. win32 10.0.22000 x64.
[1754 ms] Start: Run: docker buildx version
[2715 ms] github.com/docker/buildx v0.10.0 876462897612d36679153c3414f7689626251501
[2716 ms]
[2716 ms] Start: Resolving Remote
[2719 ms] Start: Run: git rev-parse --show-cdup
Running the initializeCommand from devcontainer.json...
[2843 ms] Start: Run: C:\WINDOWS\system32\cmd.exe /c cd .devcontainer && bash ensure-mount-sources
"Ensuring mount points exist..."
A subdirectory or file C:\Users\username\.kube already exists.
A subdirectory or file C:\Users\username\.minikube already exists.
[3283 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=c:\path\to\project
[3654 ms] Start: Run: docker inspect --type image mcr.microsoft.com/devcontainers/base:bullseye
[3968 ms] local container features stored at: c:\Users\username\.vscode\extensions\ms-vscode-remote.remote-containers-0.266.1\dist\node_modules\vscode-dev-containers\container-features
[3970 ms] Start: Run: tar --no-same-owner -x -f -
[4224 ms] * Processing feature: ghcr.io/devcontainers/features/docker-outside-of-docker:1
[4825 ms] * Processing feature: ghcr.io/devcontainers/features/kubectl-helm-minikube:1
[5334 ms] * Processing feature: ./local-features/copy-kube-config
[5334 ms] Local disk feature.
[5334 ms] Local file path parse error. Resolved path must be a child of the .devcontainer/ folder. Parsed: \c:\path\to\project\.devcontainer\local-features\copy-kube-config
[5336 ms] Error: Failed to process feature ./local-features/copy-kube-config
[5336 ms] at Pse (c:\Users\username\.vscode\extensions\ms-vscode-remote.remote-containers-0.266.1\dist\spec-node\devContainersSpecCLI.js:1805:3150)
[5336 ms] at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
[5336 ms] at async Sm (c:\Users\username\.vscode\extensions\ms-vscode-remote.remote-containers-0.266.1\dist\spec-node\devContainersSpecCLI.js:1805:2294)
[5336 ms] at async Jf (c:\Users\username\.vscode\extensions\ms-vscode-remote.remote-containers-0.266.1\dist\spec-node\devContainersSpecCLI.js:1807:1415)
[5336 ms] at async Pm (c:\Users\username\.vscode\extensions\ms-vscode-remote.remote-containers-0.266.1\dist\spec-node\devContainersSpecCLI.js:1807:308)
[5336 ms] at async EF (c:\Users\username\.vscode\extensions\ms-vscode-remote.remote-containers-0.266.1\dist\spec-node\devContainersSpecCLI.js:1893:2016)
[5336 ms] at async uT (c:\Users\username\.vscode\extensions\ms-vscode-remote.remote-containers-0.266.1\dist\spec-node\devContainersSpecCLI.js:1893:901)
[5336 ms] at async Poe (c:\Users\username\.vscode\extensions\ms-vscode-remote.remote-containers-0.266.1\dist\spec-node\devContainersSpecCLI.js:1899:2128)
[5336 ms] at async Zf (c:\Users\username\.vscode\extensions\ms-vscode-remote.remote-containers-0.266.1\dist\spec-node\devContainersSpecCLI.js:1899:3278)
[5336 ms] at async aue (c:\Users\username\.vscode\extensions\ms-vscode-remote.remote-containers-0.266.1\dist\spec-node\devContainersSpecCLI.js:2020:15276)
[5347 ms] Exit code 1
[5350 ms] Command failed: C:\Users\username\AppData\Local\Programs\Microsoft VS Code\Code.exe --ms-enable-electron-run-as-node c:\Users\username\.vscode\extensions\ms-vscode-remote.remote-containers-0.266.1\dist\spec-node\devContainersSpecCLI.js up --user-data-folder c:\Users\username\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\data --workspace-folder c:\path\to\project --workspace-mount-consistency cached --id-label devcontainer.local_folder=c:\path\to\project --log-level debug --log-format json --config c:\path\to\project\.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 true
[5350 ms] Exit code 1
- 主要语言
- Shell
- 星标
- 1.4k
- 派生
- 392
- 平均合并
- 4 天 22 小时
- 30 天内合并 PR
- 3
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
devcontainers/templates 的其他 Issue
-
rene未关闭
难度 5/5 一周以上 新手友好度 1/100
devcontainers/templates#455 ·
-
Docs request: Add Codespaces/.env best practices guidance (.env vs .env.local)可能重新可做 @V-Subhankar-infy 于 30 天前认领,目前没有进行中的 PR。 未关闭
难度 4/5 3-5 天 新手友好度 55/100
devcontainers/templates#420 · 已指派 1 人 ·
-
git-lfs not found/usable/configured correctly in Python image(s), preventng any git action可能重新可做 @V-Subhankar-infy 于 93 天前认领,目前没有进行中的 PR。 未关闭info-needed
devcontainers/templates#427 · 6 条评论 · 1 个 reaction · 已指派 1 人 ·
-
难度 4/5 3-5 天 新手友好度 35/100
devcontainers/templates#375 · 1 条评论 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 25/100
devcontainers/templates#326 ·
查看 devcontainers/templates 的全部 Issue
相似的 Issue
-
Hyprland 0.57: monitor-workspaces reconcile errors on every start and reload when a named workspace exists (workspace.id is nil)可能已有人在做 @jasasonc 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
priority middle
难度 1/5 1 小时以内 新手友好度 62/100
KATO-Hiro/AtCoderClans#12940 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 66/100
metal3-io/metal3-dev-env#1741 · 1 条评论 ·
-
bug
难度 2/5 1-3 小时 新手友好度 64/100