-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Description
Description
As the title desc, add example later.
Steps to reproduce the issue:
1.just use docker images -f reference
2.
3.
Describe the results you received:
$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
mysql latest 29e0ae3b69b9 2 months ago 484MB
redis latest 4e8db158f18d 3 months ago 83.4MB
busybox latest e1ddd7948a1c 3 months ago 1.16MB
hello-world latest 2cb0d9787c4d 4 months ago 1.85kB
busybox 1.28 8c811b4aec35 5 months ago 1.15MB
pouch test 8c811b4aec35 5 months ago 1.15MB
$ sudo docker images -f reference=mysql:*
REPOSITORY TAG IMAGE ID CREATED SIZE
mysql latest 29e0ae3b69b9 2 months ago 484MB
// not correct because of this bug
$ sudo docker images -f reference=mysql:* -f reference=redis:*
REPOSITORY TAG IMAGE ID CREATED SIZE
// not correct because of this bug
$ sudo docker images -f reference=mysql:* -f reference=busybox:*
REPOSITORY TAG IMAGE ID CREATED SIZE
mysql latest 29e0ae3b69b9 2 months ago 484MB
// not correct because of this bug
$ sudo docker images -f reference=mysql:* -f reference=busybox:* -f reference=hello-world:*
REPOSITORY TAG IMAGE ID CREATED SIZE
mysql latest 29e0ae3b69b9 2 months ago 484MB
busybox latest e1ddd7948a1c 3 months ago 1.16MB
Describe the results you expected:
As the example show, when use multi reference image filter, didn't show any relationship between multi reference filter.
For example, if we use docker images -f reference=A -f reference=B
, Then the output is images which match A or B, or match A and B? I didn't see it in current impl.
In my view, I suggest use or
relationship, as match A reference or B reference filter.
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker version
:
Docker version 18.06.1-ce, build e68fc7a
Output of docker info
:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 5
Server Version: 18.06.1-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc runsc
Default Runtime: runc
Init Binary: docker-init
containerd version: 468a545b9edcd5932818eb9de8e72413e616e86e
runc version: 69663f0bd4b60df09991c08812a60108003fa340
init version: fec3683
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.15.0-36-generic
Operating System: Ubuntu 16.04.5 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.23GiB
Name: zhangyue-ThinkPad-W530
ID: PGRR:SGFC:IDKA:SXJM:FVL3:KNVU:DILX:HUXJ:YA7W:HGK7:XCNK:L6IU
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No swap limit support
Additional environment details (AWS, VirtualBox, physical, etc.):