Skip to content

docker compose pull doesn't recognize same image and pulls it multiple times #8768

Closed
@Spaenny

Description

@Spaenny

Description

I have a docker-compose.yml defined with 3 times the same image, executing docker compose pull, pulls the same image 3 times, even tho its 3 times the same image.
I'm not 100% sure, but as far as I remember this wasn't the case in v1.

Steps to reproduce the issue:

  1. define a docker-compose.yml with 3 times the same Image
  2. execute docker compose pull

Describe the results you received:
It's pulling 3 times the same image and extracting it.

Describe the results you expected:
It should recognize it's 3 times the same image and only do it once.

Output of docker compose version:

Docker Compose version 2.0.0

Output of docker info:

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Build with BuildKit (Docker Inc., v0.6.1-docker)
  compose: Docker Compose (Docker Inc., 2.0.0)

Server:
 Containers: 6
  Running: 6
  Paused: 0
  Stopped: 0
 Images: 5
 Server Version: 20.10.8
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: false
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 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: 72cec4be58a9eb6b2910f5d10f1c01ca47d231c0.m
 runc version: v1.0.2-0-g52b36a2d
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
  cgroupns
 Kernel Version: 5.10.69-1-lts
 Operating System: Arch Linux
 OSType: linux
 Architecture: x86_64
 CPUs: 12
 Total Memory: 15.63GiB
 Name: hostname
 ID: LTH5:WYDG:XMU3:BLZN:B5RZ:CN5P:63H7:7BPK:4XAL:QR33:2H6Z:SRLO
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Username: spaenny
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: true
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

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