Selaa lähdekoodia

fix stopped containers shown as not-found

nallux 2 vuotta sitten
vanhempi
commit
e34b9840db
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      docker/docker.go

+ 1 - 1
docker/docker.go

@@ -30,7 +30,7 @@ func GetShipStatus(patps []string) (map[string]string, error) {
 		logger.Error(errmsg)
 		return statuses, err
 	} else {
-		containers, err := cli.ContainerList(context.Background(), types.ContainerListOptions{})
+		containers, err := cli.ContainerList(context.Background(), types.ContainerListOptions{All: true})
 		if err != nil {
 			errmsg := fmt.Sprintf("Error getting containers: %v", err)
 			logger.Error(errmsg)