Skip to content

Fix help for docker-agent standalone binary exec#1796

Merged
dgageot merged 1 commit intodocker:mainfrom
gtardif:fix_docker_agent_standalone_help
Feb 19, 2026
Merged

Fix help for docker-agent standalone binary exec#1796
dgageot merged 1 commit intodocker:mainfrom
gtardif:fix_docker_agent_standalone_help

Conversation

@gtardif
Copy link
Contributor

@gtardif gtardif commented Feb 19, 2026

🐠 ./bin/docker-agent --help
create or run AI agents

Usage:
  docker-agent [flags]
  docker-agent [command]

Examples:
  docker-agent run ./agent.yaml
  docker-agent run agentcatalog/pirate

(was previously displaying help for docker agent )

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
@gtardif gtardif requested a review from a team as a code owner February 19, 2026 16:42
Copy link

@docker-agent docker-agent bot left a comment

Choose a reason for hiding this comment

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

Review Summary

Approved - No issues found in the changed code.

The logic correctly implements mutually exclusive conditions for displaying the appropriate help text:

  • When running as a Docker plugin: displays docker agent syntax
  • When running as a standalone binary: displays docker-agent syntax

The conditions are properly structured with !plugin.RunningStandalone() and plugin.RunningStandalone() ensuring exactly one block executes when isDockerAgent() is true.

@dgageot dgageot merged commit 3ee027a into docker:main Feb 19, 2026
8 checks passed
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