File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ import (
24
24
25
25
"github.com/docker/compose/v2/pkg/api"
26
26
"github.com/docker/compose/v2/pkg/utils"
27
-
28
27
moby "github.com/docker/docker/api/types"
29
28
"github.com/docker/docker/api/types/filters"
29
+ "github.com/sirupsen/logrus"
30
30
)
31
31
32
32
func (s * composeService ) List (ctx context.Context , opts api.ListOptions ) ([]api.Stack , error ) {
33
33
list , err := s .apiClient ().ContainerList (ctx , moby.ContainerListOptions {
34
- Filters : filters .NewArgs (hasProjectLabelFilter ()),
34
+ Filters : filters .NewArgs (hasProjectLabelFilter (), hasConfigHashLabel () ),
35
35
All : opts .All ,
36
36
})
37
37
if err != nil {
@@ -50,7 +50,8 @@ func containersToStacks(containers []moby.Container) ([]api.Stack, error) {
50
50
for _ , project := range keys {
51
51
configFiles , err := combinedConfigFiles (containersByLabel [project ])
52
52
if err != nil {
53
- return nil , err
53
+ logrus .Warn (err .Error ())
54
+ configFiles = "N/A"
54
55
}
55
56
56
57
projects = append (projects , api.Stack {
You can’t perform that action at this time.
0 commit comments