Skip to content

[BUG] docker compose images returns weird values in CREATED column #13374

@Paraphraser

Description

@Paraphraser

Description

The docker compose images command returns creation ages of "292 years ago" for any images pulled direct from remote repositories like DockerHub.

Images built with local Dockerfiles show correct ages.

Steps To Reproduce

  1. The output of docker images shows creation ages ranging from 41 hours to 8 weeks ago.

    $ docker images --no-trunc
    REPOSITORY                 TAG         IMAGE ID                                                                  CREATED        SIZE
    jc21/nginx-proxy-manager   latest      sha256:7cfcc87a404a315bfe251fadbbcf28f680902ad1742bee2a734168791aef749b   41 hours ago   1.12GB
    influxdb                   1.11        sha256:596d3f4212b258a82e7fe70c581cb7c9bd56c5ab7aba92b2338a1b557ec2b566   8 days ago     309MB
    adguard/adguardhome        latest      sha256:ff0055dbca88da616009bb21e7a9af503713754778ec120f953e00e85bee75c8   13 days ago    72.6MB
    iotstack-nodered           latest      sha256:8fac966ca3b517cd6dc64dfabd98ce15f6a6d485200fa98fd46021920073cc4d   3 weeks ago    666MB
    iotstack-mosquitto         latest      sha256:b24b0978bc8490c33b73e016cf8867133c0ec3ea9a60bf9c681fa7af2376b989   3 weeks ago    14.9MB
    grafana/grafana            latest      sha256:52def22e4440f1ad747ea10b77aff83d82c888b0aac48f0d70928ac45f72ce5b   3 weeks ago    685MB
    zyclonite/zerotier         router      sha256:e17c886c4aa13da7a551887520c62901ae22558ab1da3dd5b354e13025d555fd   8 weeks ago    23.8MB
    
  2. The output of docker compose images agrees with docker images for locally-built images (those with the iotstack- prefix) but has the wonky value of 292 years ago for anything pulled direct from DockerHub etc.

    $ docker compose images
    CONTAINER           REPOSITORY                 TAG                 PLATFORM            IMAGE ID            SIZE                CREATED
    adguardhome         adguard/adguardhome        latest              linux/arm64         ff0055dbca88        72.6MB              292 years ago
    grafana             grafana/grafana            latest              linux/arm64         52def22e4440        685MB               292 years ago
    influxdb            influxdb                   1.11                linux/arm64/v8      596d3f4212b2        309MB               292 years ago
    mosquitto           iotstack-mosquitto         latest              linux/arm64         b24b0978bc84        14.9MB              3 weeks ago
    nginx               jc21/nginx-proxy-manager   latest              linux/arm64         7cfcc87a404a        1.12GB              292 years ago
    nodered             iotstack-nodered           latest              linux/arm64         8fac966ca3b5        666MB               3 weeks ago
    zerotier            zyclonite/zerotier         router              linux/arm64/v8      e17c886c4aa1        23.8MB              292 years ago
    

Compose Version

$ docker compose version
Docker Compose version v2.40.3
$ docker-compose version
Docker Compose version v2.40.3

Docker Environment

$ docker info
Client: Docker Engine - Community
 Version:    29.0.0
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.29.1
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.40.3
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 8
  Running: 8
  Paused: 0
  Stopped: 0
 Images: 12
 Server Version: 29.0.0
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: local
 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 splunk syslog
 CDI spec directories:
  /etc/cdi
  /var/run/cdi
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: fcd43222d6b07379a4be9786bda52438f0dd16a1
 runc version: v1.3.3-0-gd842d771
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.1.21-v8+
 Operating System: Debian GNU/Linux 11 (bullseye)
 OSType: linux
 Architecture: aarch64
 CPUs: 4
 Total Memory: 7.628GiB
 Name: iot-hub
 ID: AKTF:SPT5:YKMH:WV5G:ZKZY:XZI5:ELD5:Z6IV:KVUJ:USCV:5YDG:JPTZ
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
  ::1/128
 Live Restore Enabled: false
 Firewall Backend: iptables

Anything else?

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions