func allImages(r docker.Registry) []*client.APIImages { result := []*client.APIImages{} r.WalkImages(func(i *client.APIImages) { result = append(result, i) }) return result }
func allContainers(r docker.Registry) []docker.Container { result := []docker.Container{} r.WalkContainers(func(c docker.Container) { result = append(result, c) }) sort.Sort(containers(result)) return result }