Skip to content

Delete Compose service does not stop/remove containers or volumes (v0.28.8) #4064

@alphanull

Description

@alphanull

To Reproduce

  1. Deploy a Compose service (non-stack type) — confirmed with composeType: "compose"
  2. Navigate to the service → Settings → Delete
  3. Type the confirmation name
  4. Check "Delete volumes associated with this compose"
  5. Click Confirm

Current vs. Expected behavior

Expected behavior

  • docker compose down is executed
  • All containers are stopped and removed
  • All associated volumes are removed

Actual behavior

  • Dokploy internal entry deleted (/etc/dokploy/compose/<id> removed)
  • Containers continue running
  • Volumes remain

Provide environment information

Operating System:
  OS: Ubuntu 24.04.4 LTS
  Arch: x86_64
Dokploy version: v0.28.8
VPS Provider: Hetzner
What applications/services are you trying to deploy?
  Docker Compose service (composeType: "compose"), multi-container stack
  (Caddy, Directus, PostgreSQL/PostGIS, Redis, Astro, analytics, backup, sync)

Which area(s) are affected? (Select all that apply)

Application, Docker Compose, Docker

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

Same server where Dokploy is installed

Additional context

Notes

Related to #3691 / PR #3692 which fixed the same class of bug for composeType: "stack". This issue appears to affect the composeType: "compose" code path which was not covered by that fix. Issue #433 was marked fixed but is reproducible in v0.28.8.

The Compose service was running (not manually stopped) at the time of deletion. This may or may not be a contributing factor. However, the expected behavior is that Dokploy either (a) requires the user to stop the service before deletion, or (b) stops it automatically as part of the delete operation. Currently neither happens — the UI allows deletion of a running service without stopping it, and the backend does not stop it either.

Will you send a PR to fix it?

Maybe, need help

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions