docker images --digests registry.digitalocean.com/my-project/my-image | head
REPOSITORY TAG DIGEST IMAGE ID CREATED SIZE
registry.digitalocean.com/my-project/my-image foobar sha256:2b5602e9b8f14501f17a3984846cf365e08ed4735425e23ee6ff99017d3ffb46 60d6c85e5387 33 minutes ago 144MB
registry.digitalocean.com/my-project/my-image latest sha256:2b5602e9b8f14501f17a3984846cf365e08ed4735425e23ee6ff99017d3ffb46 60d6c85e5387 33 minutes ago 144MB
registry.digitalocean.com/my-project/my-image c0762a373ad5cdcf30755546f883b31682c39137 sha256:ec5d7f26aa2aba5f73155af193c039073a6de29e722e1cdd7b7aebec7e3d75dd 1f86f7ce6a64 18 hours ago 144MB
registry.digitalocean.com/my-project/my-image 125b5b2740aa05cf24cd633080045207d2839877 sha256:f311275425e5214a7fa18b4e9dfcdaad15e79ee3f09e69eed8b639f267267689 97b57b1238ec 4 days ago 144MB
registry.digitalocean.com/my-project/my-image f711b05b08cf5b0b0294447a25dbb68a4b1ef898 sha256:2cc565844c14554ea21b32eb40c452ff984a736631d080a8e780cd9107852c7e 6ddb2dd372c4 4 days ago 144MB
registry.digitalocean.com/my-project/my-image 14927d4aedc43befc23ccae88a4c98eaa564e151 sha256:b85bfcaed6dddd37aac04d515f25dcab974b42a93503aa68eb6b676cecb2b775 cbe49ad0f997 4 days ago 144MB
registry.digitalocean.com/my-project/my-image 0982d202eaf2251758bffd8ea9cc0dc34648722f sha256:cf3e569d1aa373c43adf3d03a2a25bd728a6ef4602a7a2339d21a3f70b2d7bbc c8e71c37f34d 4 days ago 144MB
registry.digitalocean.com/my-project/my-image 9f90109d3d6326b49c2919e247234da56a75fe2e sha256:cf3e569d1aa373c43adf3d03a2a25bd728a6ef4602a7a2339d21a3f70b2d7bbc c8e71c37f34d 4 days ago 144MB
registry.digitalocean.com/my-project/my-image 61b8e3ee89e361081abf6c0b782e51cd4b0f562e sha256:afb94c838e9e56d4127c05df5193c1c5b65416decfd2b789a4b6cbd22fc40e83 fce78f6b8660 5 days ago 144MB
Running the same command, for only the :latest image, the digest is not shown:
Describe the results you received:
docker images --digests registry.digitalocean.com/my-project/my-image:latest
REPOSITORY TAG DIGEST IMAGE ID CREATED SIZE
registry.digitalocean.com/my-project/my-image latest <none> 60d6c85e5387 34 minutes ago 144MB
Image with ID 60d6c85e5387 does have a digest in the full list, but not when queried by its tag
Describe the results you expected:
docker images --digests registry.digitalocean.com/my-project/my-image:latest
REPOSITORY TAG DIGEST IMAGE ID CREATED SIZE
registry.digitalocean.com/my-project/my-image latest sha256:2b5602e9b8f14501f17a3984846cf365e08ed4735425e23ee6ff99017d3ffb46 60d6c85e5387 34 minutes ago 144MB
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker version:
Client: Docker Engine - Community
Cloud integration: 1.0.7
Version: 20.10.2
API version: 1.41
Go version: go1.13.15
Git commit: 2291f61
Built: Mon Dec 28 16:14:16 2020
OS/Arch: windows/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.2
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: 8891c58
Built: Mon Dec 28 16:15:28 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.3
GitCommit: 269548fa27e0089a8b8278fc4fc781d7f65a939b
runc:
Version: 1.0.0-rc92
GitCommit: ff819c7e9184c13b7c2607fe6c30ae19403a7aff
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Output of docker info:
Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Build with BuildKit (Docker Inc., v0.5.1-docker)
scan: Docker Scan (Docker Inc., v0.5.0)
Server:
Containers: 9
Running: 0
Paused: 0
Stopped: 9
Images: 96
Server Version: 20.10.2
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
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: runc io.containerd.runc.v2 io.containerd.runtime.v1.linux
Default Runtime: runc
Init Binary: docker-init
containerd version: 269548fa27e0089a8b8278fc4fc781d7f65a939b
runc version: ff819c7e9184c13b7c2607fe6c30ae19403a7aff
init version: de40ad0
Security Options:
seccomp
Profile: default
Kernel Version: 4.19.128-microsoft-standard
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 32
Total Memory: 9.726GiB
Name: docker-desktop
ID: HLOX:B6C4:4UTT:HD7A:75RB:D33N:NH2U:EBD6:IC3L:ICUU:LGP6:EOVA
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No blkio weight support
WARNING: No blkio weight_device support
WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Description
docker images $IMAGE:latest
doesn't show the digest of the latest image.Steps to reproduce the issue:
Build an image
Tag it with:
registry.digitalocean.com/my-project/my-image:latest
registry.digitalocean.com/my-project/my-image:foobar
List all images:
This shows all the images, with their digests
Running the same command, for only the
:latest
image, the digest is not shown:Describe the results you received:
60d6c85e5387
does have a digest in the full list, but not when queried by its tagDescribe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Running on Docker Desktop on Windows 10