-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
Description
I’ve noticed different values being shown in the CLI and Docker Desktop for the "CREATED" fields. This only occurs when the time since creation falls into days, weeks, or months, specifically when we’re partway through those ranges (e.g., 2.7 days or 3.8 weeks).
❯ docker image ls --format table
REPOSITORY TAG IMAGE ID CREATED SIZE
docker-cli-dev latest 3ece421df299 2 hours ago 841MB
hello-world latest 452a468a4bf9 3 days ago 22.6kB // days: 3.958333
mcp/youtube-transcript latest 11c974d411d7 12 days ago 323MB // days: 12.583333
And here’s the output from Docker Desktop:
I figured out that this is a rounding issue in HumanDuration function from github.com/docker/go-units.
https://github.com/docker/go-units/blob/2d3bf9345579283aa6711d362a19f6cf222e3924/duration.go#L28-L32
I’m not sure if showing rounded values in the UI and floored values in the CLI is a deliberate choice.
Also worth noting: this isn’t limited to docker image ls. The same behavior appears in other commands like docker buildx history ls, docker model ls, etc.
Reproduce
- Run
docker model pull embeddinggemma:300M-Q8_0. - Run
docker model ls. - Compare the CREATED value with Docker Desktop, or see the “Last updated” on this page
Expected behavior
We should either display rounded values on both clients, or display floored values on both clients.
docker version
Client:
Version: 29.3.1
API version: 1.54
Go version: go1.25.8
Git commit: c2be9cc
Built: Wed Mar 25 16:12:49 2026
OS/Arch: darwin/arm64
Context: desktop-linux
Server: Docker Desktop 4.66.1 (222799)
Engine:
Version: 29.3.1
API version: 1.54 (minimum version 1.40)
Go version: go1.25.8
Git commit: f78c987
Built: Wed Mar 25 16:14:30 2026
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: v2.2.1
GitCommit: dea7da592f5d1d2b7755e3a161be07f43fad8f75
runc:
Version: 1.3.4
GitCommit: v1.3.4-0-gd6d73eb8
docker-init:
Version: 0.19.0
GitCommit: de40ad0docker info
Client:
Version: 29.3.1
Context: desktop-linux
Debug Mode: false
Plugins:
agent: Docker AI Agent Runner (Docker Inc.)
Version: v1.32.4
Path: /Users/AnGali/.docker/cli-plugins/docker-agent
ai: Docker AI Agent - Ask Gordon (Docker Inc.)
Version: v1.20.1
Path: /Users/AnGali/.docker/cli-plugins/docker-ai
buildx: Docker Buildx (Docker Inc.)
Version: v0.32.1-desktop.1
Path: /Users/AnGali/.docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v5.1.0
Path: /Users/AnGali/.docker/cli-plugins/docker-compose
debug: Get a shell into any image or container (Docker Inc.)
Version: 0.0.47
Path: /Users/AnGali/.docker/cli-plugins/docker-debug
desktop: Docker Desktop commands (Docker Inc.)
Version: v0.3.0
Path: /Users/AnGali/.docker/cli-plugins/docker-desktop
dhi: CLI for managing Docker Hardened Images (Docker Inc.)
Version: v0.0.0-alpha
Path: /Users/AnGali/.docker/cli-plugins/docker-dhi
extension: Manages Docker extensions (Docker Inc.)
Version: v0.2.31
Path: /Users/AnGali/.docker/cli-plugins/docker-extension
init: Creates Docker-related starter files for your project (Docker Inc.)
Version: v1.4.0
Path: /Users/AnGali/.docker/cli-plugins/docker-init
mcp: Docker MCP Plugin (Docker Inc.)
Version: v0.40.1
Path: /Users/AnGali/.docker/cli-plugins/docker-mcp
model: Docker Model Runner (Docker Inc.)
Version: v1.1.5
Path: /Users/AnGali/.docker/cli-plugins/docker-model
offload: Docker Offload (Docker Inc.)
Version: v0.5.73
Path: /Users/AnGali/.docker/cli-plugins/docker-offload
pass: Docker Pass Secrets Manager Plugin (beta) (Docker Inc.)
Version: v0.0.24
Path: /Users/AnGali/.docker/cli-plugins/docker-pass
sandbox: Docker Sandbox (Docker Inc.)
Version: v0.12.0
Path: /Users/AnGali/.docker/cli-plugins/docker-sandbox
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
Version: 0.6.0
Path: /Users/AnGali/.docker/cli-plugins/docker-sbom
scout: Docker Scout (Docker Inc.)
Version: v1.20.2
Path: /Users/AnGali/.docker/cli-plugins/docker-scout
Server:
Containers: 2
Running: 0
Paused: 0
Stopped: 2
Images: 3
Server Version: 29.3.1
Storage Driver: overlayfs
driver-type: io.containerd.snapshotter.v1
Logging Driver: json-file
Cgroup Driver: cgroupfs
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
Discovered Devices:
cdi: docker.com/gpu=webgpu
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: dea7da592f5d1d2b7755e3a161be07f43fad8f75
runc version: v1.3.4-0-gd6d73eb8
init version: de40ad0
Security Options:
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.12.76-linuxkit
Operating System: Docker Desktop
OSType: linux
Architecture: aarch64
CPUs: 14
Total Memory: 7.652GiB
Name: docker-desktop
ID: 83986478-849c-4f57-9664-d3e530311ba7
Docker Root Dir: /var/lib/docker
Debug Mode: false
HTTP Proxy: http.docker.internal:3128
HTTPS Proxy: http.docker.internal:3128
No Proxy: hubproxy.docker.internal
Labels:
com.docker.desktop.address=unix:///Users/AnGali/Library/Containers/com.docker.docker/Data/docker-cli.sock
Experimental: false
Insecure Registries:
hubproxy.docker.internal:5555
::1/128
127.0.0.0/8
Live Restore Enabled: false
Firewall Backend: iptablesAdditional Info
No response