Procházet zdrojové kódy

fix stopped containers shown as not-found

nallux před 2 roky
rodič
revize
e34b9840db
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)