Skip to content

Mess output when compose pull images that contains the same layer #9469

@PMExtra

Description

@PMExtra

Steps to reproduce the issue:

  1. Find two images that contains the same base layer
  2. Make a docker-compose.yml file that refers these two images
  3. Execute docker compose pull

Describe the results you received:

The common layer will be shift and flash between the images, like:

Pulling images...
[+] Running xx/xx
 ⠿ imageA Pulling
    ⠿ layerA2 downloading ...
 ⠿ imageB Pulling
    ⠿ layer1 downloading ...                      # this line will shift between imageA and imageB
    ⠿ layerB2 downloading ...

Describe the results you expected:

Stick it with a certain image, don't shift around.

Output of docker compose version:

Docker Compose version v2.2.2

Output of docker info:

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Docker Buildx (Docker Inc., v0.7.1-docker)
  compose: Docker Compose (Docker Inc., v2.2.2)
  scan: Docker Scan (Docker Inc., v0.12.0)

Server:
 Server Version: 20.10.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions