fix(images): consider stopped containers for unused label [EE-6983] (#11629)

pull/11638/head
Prabhat Khera 7 months ago committed by GitHub
parent e7a2b6268e
commit c15789eb73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -64,7 +64,9 @@ func (handler *Handler) imagesList(w http.ResponseWriter, r *http.Request) *http
imageUsageSet := set.Set[string]{} imageUsageSet := set.Set[string]{}
if withUsage { if withUsage {
containers, err := cli.ContainerList(r.Context(), container.ListOptions{}) containers, err := cli.ContainerList(r.Context(), container.ListOptions{
All: true,
})
if err != nil { if err != nil {
return httperror.InternalServerError("Unable to retrieve Docker containers", err) return httperror.InternalServerError("Unable to retrieve Docker containers", err)
} }

Loading…
Cancel
Save