Docker Community Forums

Share and learn in the Docker community.

Using filter reference in docker images print


#1

Hi,

please clarify the use of option “reference” in docker images

Please refer to following prints

[test@eilagcy1 Builds]$ docker version
Client:
Version: 17.05.0-ce
API version: 1.29
Go version: go1.7.5
Git commit: 89658be
Built: Thu May 4 22:06:25 2017
OS/Arch: linux/amd64

Server:
Version: 17.05.0-ce
API version: 1.29 (minimum version 1.12)
Go version: go1.7.5
Git commit: 89658be
Built: Thu May 4 22:06:25 2017
OS/Arch: linux/amd64
Experimental: false
[test@eilagcy1 Builds]$

[test@eilagcy1 Builds]$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
mycento v1 0cbf37812bff 8 weeks ago 194MB
eilagcy/mycentos v4 0cbf37812bff 8 weeks ago 194MB
hello-world latest 4ab4c602aa5e 3 months ago 1.84kB

[test@eilagcy1 Builds]$ docker images --filter=reference=“cento":"v
REPOSITORY TAG IMAGE ID CREATED SIZE
mycento v1 0cbf37812bff 8 weeks ago 194MB

in the above print, when i used expression *cento , it only printed one of the images and not the " eilagcy/mycentos" image

[test@eilagcy1 Builds]$ docker images --filter=reference=“cent":"v
REPOSITORY TAG IMAGE ID CREATED SIZE

in the above when I used the expression *cent , it did not print any image

I want to understand how this works

Regards,
Anuraag