Healthy Swarm task shows an empty `(Error:)` suffix on the last row of the Containers tab
Maintainers usually reply within 1 day
@AyhamJo7 is already working on this.
Since Nov 25, 2026.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 85/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- docker, typescript
- Domain
- backend
Research direction
Start in packages/server/src/services/docker.ts at getStackTaskContainers, where Docker task rows are trimmed, split on |, and the Error: field label is removed. Reproduce the trailing-empty-field case from the issue and inspect why the final row keeps the label while earlier rows become empty. The fix should strip the label independently of the trailing space, and regression coverage should cover two empty errors plus a nonempty final error; done means the Containers tab shows only Running … when Docker reports no error.
Written by the indexing model from the issue text.
Description
To Reproduce
- In Dokploy, deploy a Docker Stack with at least two running tasks. Open the stack’s Containers tab.
- On the Swarm manager, run
docker stack ps <stack> --no-trunc --filter desired-state=running --format '{{.ID}} | {{.CurrentState}} | {{json .Error}}'. Pick the last task and confirm its error is an empty string (""). - Compare that task’s status on the Containers tab with the status of the preceding task.
Current vs. Expected behavior
The final row displayed running and Running 42 seconds ago (Error:). I matched the task ID on the manager: Docker reported running, the service was 1/1, and docker inspect --type task showed no Status.Err field. The application also started successfully.
Expected: Running 42 seconds ago. A suffix should appear only when Docker supplies an actual error message.
Provide environment information
Dokploy v0.31.4 (self-hosted)
Docker Stack on a remote Linux Swarm cluster
Affected view: Compose → Containers
Which area(s) are affected? (Select all that apply)
Docker Compose
Are you deploying the applications where Dokploy is installed or on a remote server?
Remote server
Additional context
In getStackTaskContainers in v0.31.4, tasksSection.trim() removes the space after the final Error:. The parser then strips the literal Error: , including its trailing space. For the last row the label survives as the nonempty string Error:, which is appended to the status.
Minimal parser reproduction using two empty Docker error fields:
const rows = ['web.1', 'web.2'].map(name =>
`TASK : id | Name: ${name} | Node: worker | CurrentState: Running | Error: `
);
const errors = (rows.join('\n') + '\n').trim().split('\n').map(line =>
line.split(' | ')[4].replace('Error: ', '').trim()
);
console.log(errors); // ['', 'Error:']
Stripping the field label independently of trailing whitespace (e.g. replace(/^Error:\s*/, '')) would handle the empty final field. A regression test could cover empty errors on both rows and a nonempty error on the final row.
Will you send a PR to fix it?
No
- Dominant language
- TypeScript
- Stars
- 38.8k
- Forks
- 3.2k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 117
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Dokploy/dokploy
-
Docker > Volumes: sorting by Size does nothing, and text columns sort inconsistentlyPossibly taken @BitPluto claimed this today. Openneeds-triage🔍
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Dokploy/dokploy#6203 · 1 comment ·
Maintainers usually reply within 1 day
-
needs-triage🔍
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Dokploy/dokploy#6197 · 1 comment ·
Maintainers usually reply within 1 day
-
MongoDB with Replica Sets enabled: container exits with code 0 and restarts in a loop (generated startup script never waits on mongod)Possibly taken @ghazy2001 claimed this 13 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Dokploy/dokploy#6051 · 2 comments ·
Maintainers usually reply within 1 day
-
Dokploy monitoring API returns partial container metrics with HTTP 200 when a row read failsPossibly taken @PAtreju claimed this 15 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Dokploy/dokploy#6029 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Volume backup silently uploads an empty tar when the volume does not exist on the host (stack prefix missing / service on swarm worker)Possibly taken @PAtreju claimed this 15 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Dokploy/dokploy#6022 · 1 comment · 1 reaction · 1 assignee ·
Maintainers usually reply within 1 day
Similar issues
-
🔨 tool 🧰 library
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Orange-OpenSource/Orange-Boosted-Bootstrap#4035 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
DISIC/teleservice-conformite#230 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
rothgar/rabble.radio#410 ·
Maintainers usually reply within 1 day
-
area/webapp comp/desktop P2 type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NousResearch/hermes-agent#163341 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
smart-village-solutions/smart-speech-flow#765 ·
Maintainers usually reply within 1 day