Skip to content

Add PowerShell installation script for Windows users #202

@tataouinea

Description

@tataouinea

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:

  1. Immediate value: Provides a workaround for the current Docker Desktop update issue affecting Windows users
  2. Long-term value: Gives Windows users parity with Linux/macOS automated installation, even after Docker Desktop issues are resolved
  3. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions