Add PowerShell installation script for Windows users
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- docker, github, powershell
- 领域
- cli
调研方向
首先,将仓库现有的 install.sh 与 tataouinea/Repair-DockerScoutCLI 中提议的 PowerShell 脚本进行比较。确认脚本应如何处理架构检测、GitHub 下载、Windows 安装目录、Docker 配置更新和备份;当确定了符合仓库标准且经过批准的 Windows 安装路径后,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Issue Description:
Currently, the Docker Scout CLI repository provides an automated Bash installation script (install.sh) for Linux and macOS users, but Windows users must either rely on Docker Desktop or perform manual installation steps.
However, many Windows users are experiencing Docker Desktop update failures specifically related to Docker Scout CLI updates (see docker/for-win#14807 and my workaround comment). This leaves Windows users with no automated installation option when Docker Desktop's built-in updater fails.
Proposed Solution:
I've created a PowerShell script that automates the Docker Scout CLI installation process for Windows users. The script:
- Automatically detects CPU architecture (amd64/arm64)
- Downloads the latest release from GitHub
- Installs to the correct Windows directory (
%USERPROFILE%\.docker\scout) - Updates the Docker configuration file with proper JSON formatting
- Creates backups and handles edge cases safely
Repository: https://github.com/tataouinea/Repair-DockerScoutCLI
Benefits:
- Immediate value: Provides a workaround for the current Docker Desktop update issue affecting Windows users
- Long-term value: Gives Windows users parity with Linux/macOS automated installation, even after Docker Desktop issues are resolved
- Consistency: Follows the same approach as the existing Bash script for other platforms
Request:
Would the maintainers be interested in a PR that adds this PowerShell script to the repository? This would provide Windows users with the same automated installation experience that Linux and macOS users currently enjoy, and could serve as the official Windows installation method alongside the existing Bash script.
The script has been tested and successfully resolves the Docker Desktop update issue, but integrating it into the official repository would make it more discoverable and accessible to affected users.
I'm open to making any necessary modifications to the script to meet repository standards, such as:
- Removing excessive confirmation prompts for a cleaner experience
- Adjusting or removing the automatic backup functionality for the JSON configuration file
- Any other changes to align with the project's coding standards and preferences
Thank you for considering this enhancement!
- 主要语言
- Shell
- 星标
- 455
- 派生
- 134
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
docker/scout-cli 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 4/5 3-5 天 新手友好度 48/100
-
allstar
难度 2/5 1-3 小时 新手友好度 45/100
-
难度 4/5 3-5 天 新手友好度 48/100
-
panic: nil deref in createVCS() scanning multi-arch image by tag when no attestation sidecar exists未关闭
难度 4/5 3-5 天 新手友好度 64/100
相似的 Issue
-
Feature Needs Triage
难度 2/5 1-3 小时 新手友好度 72/100
project-chip/certification-tool#1154 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
beehive-lab/TornadoVM#1151 ·
维护者通常 1 天内回复
-
component/tests
难度 2/5 1-3 小时 新手友好度 72/100
NVIDIA/nodewright#735 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
obra/superpowers#2433 ·
维护者通常 5 天内回复