mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 20:51:44 +00:00
'docker images' lists images in reverse creation order
This commit is contained in:
+1
-1
@@ -112,7 +112,7 @@ func (store *Store) Remove(img *Image) error {
|
||||
|
||||
func (store *Store) List(pth string) ([]*Image, error) {
|
||||
pth = path.Clean(pth)
|
||||
images, err := store.orm.Select(Image{}, "select images.* from images, paths where Path=? and paths.Image=images.Id", pth)
|
||||
images, err := store.orm.Select(Image{}, "select images.* from images, paths where Path=? and paths.Image=images.Id order by images.Created desc", pth)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user