You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error hooks are printed before command output #6973
The "what's next" hint is printed before the command output, which probably should be after (as we do for other hints);
docker run --rm --env-file=./no-such-file alpine
What's next: Debug this container error with Gordon → docker ai "help me fix this container error"docker: open ./no-such-file: no such file or directoryRun 'docker run --help' for more information
Reproduce
Expected behavior
No response
docker version
Client:
Version: 29.4.3
API version: 1.54
Go version: go1.26.2
Git commit: 055a478
Built: Wed May 6 17:06:34 2026
OS/Arch: darwin/arm64
Context: desktop-linux
Activity
fix: flush stderr before printing hooks to ensure correct output order
fix: flush stderr before printing hooks to ensure correct output order
FrancescoCastaldi commentedon Aug 31, 2026
I've opened a fix for this in #7263.
cmd/docker: print command error before running CLI command error hooks