Skip to content

Docker Compose pull don't clean terminal #9500

@JADC362

Description

@JADC362

Description

docker compose pull of images doesn't clean the terminal, making it really complicated to have a clean & useful output log of the progress of image download.

Despite the output log of docker pull and docker-compose pull (or up), where the cmd cleans the terminal everytime will print out, docker compose don't clean the terminal, adding thousand of lines to the terminal stdout.

Steps to reproduce the issue:
For a given docker-compose.yml configuration file of services:

  1. Remove the images from the working machine.
  2. Call docker compose up. The process of pull will start, since the images were previously removed.
  3. See the output (appreciated when the pull image has several layers).

Describe the results you received:

Thousand of lines are added to the stdout of the terminal, filling the entire window with repetitive information"
(output log was clean a little bit just for clarity)

[+] Running 22/109Waiting
 ⠸ service-compose Pulling
   ⠿ b282d58c3583 Already exists
   ⠿ a723e6be38fb Already exists
   ⠇ 4b701269f196 Downloading    [=========>                                         ]  242.2kB/1.318MB
   ⠇ d47090bab477 Downloading    [>                                                  ]  432.7kB/42.24MB
   ⠇ ad3dc22ab53c Downloading    [==>                                                ]  3.764MB/65.44MB
   ⠇ 67f5b059511e Waiting
   ⠇ a0eb0f94e1ac Waiting
   ⠇ e25f2676785a Waiting
   ⠇ f493a417a455 Waiting
   ⠇ 03c15bc55f17 Waiting
   ⠇ 35e6c5cef9ba Waiting
   ⠇ 48f6053856a5 Waiting
   ⠇ 6767a1cb8eab Pulling fs layer

[+] Running 22/109Waiting
 ⠸ service-compose Pulling
   ⠿ 4e524281c0e3 Already exists
   ⠿ 376f715ed127 Already exists
   ⠿ b282d58c3583 Already exists
   ⠿ a723e6be38fb Already exists
   ⠏ 4b701269f196 Downloading    [=========>                                         ]  259.6kB/1.318MB
   ⠏ d47090bab477 Downloading    [>                                                  ]  432.7kB/42.24MB
   ⠏ ad3dc22ab53c Downloading    [==>                                                ]  3.764MB/65.44MB
   ⠏ 67f5b059511e Waiting
   ⠏ 48f6053856a5 Waiting
   ⠏ 6767a1cb8eab Pulling fs layer
   ⠏ 2bc25825870e Waiting
   ⠏ 8e1e343149a2 Pulling fs layer

[+] Running 22/109Waiting
 ⠼ service-compose Pulling
   ⠿ 40dd5be53814 Already exists
   ⠿ a65975cd077c Already exists
   ⠿ 1d2d81f63b0e Already exists
   ⠿ b4586a3cc821 Already exists
   ⠿ 30d00d530989 Already exists
   ⠿ 127d44fde701 Already exists
   ⠋ 4b701269f196 Downloading    [=========>                                         ]  259.6kB/1.318MB
   ⠋ d47090bab477 Downloading    [>                                                  ]  432.7kB/42.24MB
   ⠋ ad3dc22ab53c Downloading    [==>                                                ]  3.764MB/65.44MB
   ⠋ 67f5b059511e Waiting

Describe the results you expected:

A single scope of information with the progress vars and related are clean & print out again:

[+] Running 22/109Waiting
 ⠼ service-compose Pulling
   ⠿ 40dd5be53814 Already exists
   ⠿ a65975cd077c Already exists
   ⠿ 1d2d81f63b0e Already exists
   ⠿ b4586a3cc821 Already exists
   ⠿ 30d00d530989 Already exists
   ⠿ 127d44fde701 Already exists
   ⠋ 4b701269f196 Downloading    [=========>                                         ]  259.6kB/1.318MB
   ⠋ d47090bab477 Downloading    [>                                                  ]  432.7kB/42.24MB
   ⠋ ad3dc22ab53c Downloading    [==>                                                ]  3.764MB/65.44MB
   ⠋ 67f5b059511e Waiting

Output of docker compose version:

Docker Compose version v2.5.0

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