Skip to content

fix: use self.execute_command to avoid docker docker bug#180

Merged
joshrotenberg merged 2 commits intomainfrom
fix/docker-docker-command-execution
Dec 11, 2025
Merged

fix: use self.execute_command to avoid docker docker bug#180
joshrotenberg merged 2 commits intomainfrom
fix/docker-docker-command-execution

Conversation

@joshrotenberg
Copy link
Copy Markdown
Owner

Summary

Commands were incorrectly calling self.executor.execute_command("docker", args) which resulted in docker docker <cmd> being executed. This fixes all 10 affected commands to use self.execute_command(args) instead.

Affected Commands

  • build
  • builder/build
  • builder/prune
  • images
  • login
  • logout
  • pull
  • push
  • search
  • tag

Prevention

Added a CI check that greps for this antipattern to prevent it from happening again.

Attribution

Based on the fix identified by @KrLite in #177.

Fixes #176

KrLite and others added 2 commits December 11, 2025 11:32
Commands were incorrectly calling self.executor.execute_command("docker", args)
which resulted in 'docker docker <cmd>' being executed. This fixes all 10
affected commands to use self.execute_command(args) instead.

Also adds a CI check to prevent this antipattern from reoccurring.

Fixes #176
@joshrotenberg joshrotenberg merged commit c76debc into main Dec 11, 2025
11 checks passed
@joshrotenberg joshrotenberg deleted the fix/docker-docker-command-execution branch December 11, 2025 19:43
@github-actions github-actions Bot mentioned this pull request Dec 11, 2025
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.

Unknown command: docker docker generated by PullCommand

2 participants