Explorar el Código

fix stopped containers shown as not-found

nallux hace 2 años
padre
commit
e34b9840db
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)