Skip to content

New TUI spams lines when pulling multiple images causing you to lose your terminal history #8800

@clrxbl

Description

@clrxbl

Description

@thaJeztah has asked me to open an issue after commenting on #8753

For your use-case, is there a specific reason why the new output is problematic for you? If so, could you describe your use-case? Perhaps there's enhancements to be made to address.

I'm not the person who created this issue but I have one complaint about the new output as well.
First of all, I love BuildKit's output in docker build. But, compose's implementation makes me question how this made it through an official 2.0 release.

xEoPf4fzPn_1.mp4

This can be reproduced in both Windows' command prompt, Windows Terminal and probably others. It literally spams thousands of lines to the terminal ruining the ability to scroll back. Sorry if I'm hijacking the issue but it seemed fairly fitting as I have to resort to rolling back to a 1.x release.

Originally posted by @clrxbl in #8753 (comment)

Steps to reproduce the issue:

  1. docker compose up on a docker-compose.yml file that contains multiple images & a small enough terminal window.

Describe the results you received:
See the above video

Describe the results you expected:
I should be able to scroll back and not lose all of my terminal history, even after the command is done.

Additional information you deem important (e.g. issue happens only occasionally):
It seems like this issue isn't present if you're reproducing it in a large enough terminal window (e.g. fullscreen)

Output of docker compose version:

Docker Compose version 2.0.1

Output of docker info:

WARNING: Plugin "/usr/local/lib/docker/cli-plugins/docker-buildx" is not valid: failed to fetch metadata: fork/exec /usr/local/lib/docker/cli-plugins/docker-buildx: no such file or directory
WARNING: Plugin "/usr/local/lib/docker/cli-plugins/docker-compose" is not valid: failed to fetch metadata: fork/exec /usr/local/lib/docker/cli-plugins/docker-compose: no such file or directory
WARNING: Plugin "/usr/local/lib/docker/cli-plugins/docker-scan" is not valid: failed to fetch metadata: fork/exec /usr/local/lib/docker/cli-plugins/docker-scan: no such file or directory
Client:
WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
 Context:    default
 Debug Mode: false
 Plugins:

Server:
 Containers: 12
  Running: 0
  Paused: 0
  Stopped: 12
 Images: 11
 Server Version: 20.10.9
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 8686ededfc90076914c5238eb96c883ea093a8ba.m
 runc version: v1.0.2-0-g52b36a2d
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 5.10.60.1-microsoft-standard-WSL2
 Operating System: Arch Linux
 OSType: linux
 Architecture: x86_64
 CPUs: 12
 Total Memory: 15.63GiB
 Name: DESKTOP-BQ26BOE-wsl
 ID: CWUC:IOEW:TCJZ:EZJS:RTO5:YSBV:X7BE:YHNS:MQNY:V3VQ:N3NI:I4T4
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Username: clrxbl
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

Additional environment details:
Arch Linux WSL2 w/ systemd-genie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions