diff --git a/agent/app/service/snapshot.go b/agent/app/service/snapshot.go
index 3392e2e7c..976ce4a7b 100644
--- a/agent/app/service/snapshot.go
+++ b/agent/app/service/snapshot.go
@@ -299,7 +299,11 @@ func loadAppImage(list []dto.DataTree) []dto.DataTree {
for i := 0; i < len(list); i++ {
itemAppImage := dto.DataTree{ID: uuid.NewString(), Label: "appImage"}
- stdout, err := cmd.RunDefaultWithStdoutBashCf("cat %s | grep image: ", list[i].Path)
+ appPath := path.Join(global.Dir.DataDir, "apps", list[i].Key, list[i].Name)
+ if list[i].IsLocal {
+ appPath = path.Join(global.Dir.AppDir, "local", strings.TrimPrefix(list[i].Key, "local"), list[i].Name)
+ }
+ stdout, err := cmd.RunDefaultWithStdoutBashCf("cat %s | grep image: ", path.Join(appPath, "docker-compose.yml"))
if err != nil {
list[i].Children = append(list[i].Children, itemAppImage)
continue
diff --git a/frontend/src/components/label/index.vue b/frontend/src/components/label/index.vue
index ed3296928..1a40d7943 100644
--- a/frontend/src/components/label/index.vue
+++ b/frontend/src/components/label/index.vue
@@ -18,11 +18,17 @@
-
+
-
+