When a project's application instance runs on a **Docker Swarm worker node** instead of the **manager node**, executing a **Schedule** job fails with `Container not found`.

Aperta
#6,097 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, nextjs, typescript
Ambito
devops

Direzione di ricerca

The schedule runner looks up the application's container on the local node, so the lookup must be extended to find Swarm tasks placed on worker nodes. Start where the schedule runner reports 'Container not found' and trace how it resolves the container for the app name. Done when a schedule job runs against a task on a worker node; this needs Docker Swarm knowledge, so expect to ask the maintainers for guidance.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

needs-triage🔍
To Reproduce
  1. Deploy an application in a Docker Swarm cluster where the task/container is scheduled on a worker node (not the manager node).
  2. Create a Schedule job targeting that application.
  3. Trigger the schedule (manually or via cron).
  4. Observe the execution log showing Container not found for application '', make sure the service is running.
Current vs. Expected behavior
Expected Behavior

The schedule runner should locate and execute the command against the running application task/container even when the Swarm task is placed on a worker node.

Actual Behavior

The schedule fails immediately with Container not found because the container is not found locally on the manager/control-plane node.

Provide environment information
Ubuntu 24.04.3

Dokploy version v0.31.4
Which area(s) are affected? (Select all that apply)

Application

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context
Error Logs
Initializing schedule
❌ Container not found for application 'app-name-wjrb6s', make sure the service is running

### Will you send a PR to fix it?

Maybe, need help
Lingua principale
TypeScript
Stelle
38.8k
Fork
3.2k
Merge medio
1g 10h
PR unite (30g)
110

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Dokploy/dokploy

Tutte le issue di Dokploy/dokploy

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.