mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 04:31:28 +00:00
improve image listing
This commit is contained in:
@@ -210,8 +210,10 @@ func (srv *Server) Images(all bool, filter string) ([]APIImages, error) {
|
||||
}
|
||||
outs := []APIImages{} //produce [] when empty instead of 'null'
|
||||
for name, repository := range srv.runtime.repositories.Repositories {
|
||||
if filter != "" && name != filter {
|
||||
continue
|
||||
if filter != "" {
|
||||
if match, _ := path.Match ( filter, name ); !match {
|
||||
continue
|
||||
}
|
||||
}
|
||||
for tag, id := range repository {
|
||||
var out APIImages
|
||||
|
||||
Reference in New Issue
Block a user