`install-docker-ce.ps1` should install the Windows feature `Microsoft-Hyper-V`, not the non-existent Windows feature `Hyper-V`
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 68/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 冷清
- 技术栈
- docker, powershell
调研方向
检查 helpful_tools/Install-DockerCE/install-docker-ce.ps1 第 306 行附近的内容,并将其中使用的 Windows 功能名称与 issue 中的 PowerShell 命令进行比较。在 PowerShell 7 中验证安装流程,然后运行 docker run hello-world:nanoserver;完成意味着脚本启用了所需功能,并且容器在没有报告的错误的情况下启动。
由索引模型根据 Issue 内容生成。
描述
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
install-docker-ce.ps1should install the Windows featureMicrosoft-Hyper-V, not the non-existent Windows featureHyper-V. See https://github.com/microsoft/Windows-Containers/blob/6ace4f158e85674df5a246f7173ecf1109234d74/helpful_tools/Install-DockerCE/install-docker-ce.ps1#L306- Currently, if the following command is executed only in PowerShell 7,
Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/Windows-Containers/Main/helpful_tools/Install-DockerCE/install-docker-ce.ps1" -OutFile ./install-docker-ce.ps1
./install-docker-ce.ps1
docker run hello-world:nanoserver
- This will result in the following error log:
PS C:\Users\lingh> docker run hello-world:nanoserver
Unable to find image 'hello-world:nanoserver' locally
nanoserver: Pulling from library/hello-world
77321bd03612: Pull complete
b282ab27bbb7: Pull complete
dce32bbed4f4: Pull complete
Digest: sha256:17db24031879dda57a6541b9d3db5dc16ddf3e03145ccfd0e0c30855bac658ea
Status: Downloaded newer image for hello-world:nanoserver
docker: Error response from daemon: hcs::CreateComputeSystem 665b048b75a12cef971348db7820758490a4e076b3647c64bee0791e53ff5727: The request is not supported.
Run 'docker run --help' for more information
- This means users always need to additionally execute
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
- Null.
Additional context
Add any other context or screenshots about the feature request here.
- Early investigations can be found at https://www.yuque.com/linghengqian/meve2v/tlc6v3wg2gks3ug3 .
- 主要语言
- PowerShell
- 星标
- 557
- 派生
- 75
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/Windows-Containers 的其他 Issue
-
难度 4/5 1-2 天 新手友好度 48/100
microsoft/Windows-Containers#657 · 2 条评论 ·
-
bug triage
难度 5/5 一周以上 新手友好度 30/100
microsoft/Windows-Containers#655 · 8 条评论 ·
-
enhancement triage
难度 5/5 一周以上 新手友好度 25/100
microsoft/Windows-Containers#653 · 1 条评论 ·
-
enhancement triage
难度 5/5 一周以上 新手友好度 30/100
microsoft/Windows-Containers#652 · 1 条评论 ·
-
enhancement triage
难度 5/5 一周以上 新手友好度 30/100
microsoft/Windows-Containers#651 · 1 条评论 ·
查看 microsoft/Windows-Containers 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
-
good first issue
难度 2/5 半天 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
oposs/repo-infra#93 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
cloudflare/terraform-provider-cloudflare#7423 ·
维护者通常 1 天内回复