Skip to content

Verify docker cli ce#693

Merged
ilopezluna merged 2 commits intomainfrom
verify-docker-cli-ce
Feb 18, 2026
Merged

Verify docker cli ce#693
ilopezluna merged 2 commits intomainfrom
verify-docker-cli-ce

Conversation

@ilopezluna
Copy link
Contributor

No description provided.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @ilopezluna, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refactors the Docker CE installation verification script to provide greater flexibility in specifying the CLI version. It introduces the ability to pass the version directly as an argument, while also refining the automatic version detection mechanism from git tags. These changes aim to make the script more robust and user-friendly, especially in environments where tag naming conventions might vary or when a specific version needs to be tested.

Highlights

  • CLI Version Argument: The script now accepts the Docker CLI version as a command-line argument, allowing for explicit version specification.
  • Improved Version Detection: When no argument is provided, the script attempts to automatically detect the CLI version from git tags, now using a more general 'v*' pattern instead of 'cmd/cli/v*'.
  • Enhanced Error Handling: A more informative error message is displayed if the CLI version cannot be determined, guiding the user to pass it as an argument.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • scripts/test-docker-ce-installation.sh
    • Added support for passing the CLI version as the first command-line argument.
    • Modified the git tag pattern for automatic CLI version detection from 'cmd/cli/v*' to 'v*'.
    • Updated the error message to suggest passing the version as an argument if auto-detection fails.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/release.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request refactors the test-docker-ce-installation.sh script to allow passing the CLI version as an argument, or falling back to detecting it from Git tags. This improves flexibility and robustness for testing Docker CE installations. The changes are well-implemented and address the stated goal.

echo "Warning: No remote found for docker/model-runner, using local tags only" >&2
fi

cli_version=$(git tag -l --sort=-version:refname "v*" | head -1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The git tag -l command now looks for tags starting with v* instead of cmd/cli/v*. This change might be intentional, but it's worth confirming if the tag naming convention for CLI versions has changed or if this broadens the search more than intended. If the intention is to only get CLI versions, the previous pattern was more specific.

cli_version=$(git tag -l --sort=-version:refname "v*" | head -1)

if [ -z "$cli_version" ]; then
echo "Error: Could not determine CLI version from git tags. Pass version as argument: $0 <version>" >&2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The error message is helpful by suggesting to pass the version as an argument. This improves the user experience when the script cannot determine the CLI version automatically.

@ilopezluna ilopezluna marked this pull request as ready for review February 18, 2026 15:27
@ilopezluna ilopezluna requested a review from a team February 18, 2026 15:31
@ilopezluna ilopezluna merged commit 0d88ef0 into main Feb 18, 2026
10 checks passed
@ilopezluna ilopezluna deleted the verify-docker-cli-ce branch February 18, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments