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`.

Đang mở
#6,097 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, nextjs, typescript
Lĩnh vực
devops

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
TypeScript
Star
38.8k
Fork
3.2k
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
110

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Dokploy/dokploy

Tất cả issue của Dokploy/dokploy

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.