Skip to content

Error hooks are printed before command output #6973

Closed

Description

@thaJeztah

Description

Noticed this while testing #6972

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 directory

Run '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

docker info

not relevant

Additional Info

No response

Activity

  1. added 2 commits that reference this issue on Jun 15, 2026
    c77e032
    0eb87bd
  2. FrancescoCastaldi commented on Aug 31, 2026

    @FrancescoCastaldi
    Contributor

    I've opened a fix for this in #7263.

  3. added a commit that references this issue on Aug 31, 2026
    fa008b6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions