From a54c84a138a9706c2e50ce3116395ae54a266d66 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Sat, 7 Feb 2026 02:10:55 -0600 Subject: [PATCH] feat(logs): display error messages for containers in dashboard logs - Added error message display for containers in both the application and stack log views when using the "swarm" option. - Updated Docker command to include error information for containers, enhancing visibility into container issues. --- .../components/dashboard/application/logs/show.tsx | 9 +++++++++ .../components/dashboard/compose/logs/show-stack.tsx | 7 +++++++ packages/server/src/services/docker.ts | 10 ++++++++-- 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/apps/dokploy/components/dashboard/application/logs/show.tsx b/apps/dokploy/components/dashboard/application/logs/show.tsx index be3e91bf3..019cfd943 100644 --- a/apps/dokploy/components/dashboard/application/logs/show.tsx +++ b/apps/dokploy/components/dashboard/application/logs/show.tsx @@ -171,6 +171,15 @@ export const ShowDockerLogs = ({ appName, serverId }: Props) => { + {option === "swarm" && + services?.find((c) => c.containerId === containerId)?.error && ( +
+ Error: + { + services.find((c) => c.containerId === containerId)?.error + } +
+ )} { + {option === "swarm" && + services?.find((c) => c.containerId === containerId)?.error && ( +
+ Error: + {services.find((c) => c.containerId === containerId)?.error} +
+ )}