Skip to content

revisit: add timeout parameter to cli and driver#3585

Closed
avoidik wants to merge 1 commit intodocker:masterfrom
avoidik:master
Closed

revisit: add timeout parameter to cli and driver#3585
avoidik wants to merge 1 commit intodocker:masterfrom
avoidik:master

Conversation

@avoidik
Copy link

@avoidik avoidik commented Jan 10, 2026

Signed-off-by: Viacheslav Vasilyev <avoidik@gmail.com>
@avoidik
Copy link
Author

avoidik commented Jan 10, 2026

Same as before:

  • --timeout CLI flag
  • BUILDX_TIMEOUT environment variable (affects only CLI commands, not driver)
  • docker buildx create ... --driver-opt timeout=60s to change it in driver (default timeout is up to a driver's developer)

Defaults: Driver timeout is 120s, the rest is 20s.

@avoidik
Copy link
Author

avoidik commented Jan 10, 2026

kindly asking for your attention to this PR @tonistiigi

@avoidik
Copy link
Author

avoidik commented Jan 10, 2026

cc @CamJN please review too

@tonistiigi tonistiigi requested a review from crazy-max February 23, 2026 05:48
@tonistiigi tonistiigi added this to the v0.32.0 milestone Feb 23, 2026
timeoutDuration = defaultTimeoutCli
}
}
flags.DurationVar(&options.timeout, "timeout", timeoutDuration, "Override the default global timeout (as duration, for example 1m20s)")
Copy link
Member

Choose a reason for hiding this comment

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

This adds a persistent --timeout flag, so docs now show it for almost every subcommand. But code only consumes it in a subset like create, du. A global timeout flag is not the right UX/API imo. It is too broad for what the implementation actually affects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants