mirror of https://github.com/portainer/portainer
fix(images): consider stopped containers for unused label [EE-6983] (#11629)
parent
e7a2b6268e
commit
c15789eb73
|
@ -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…
Reference in New Issue