Skip to content

Local deployment doesn’t replace old container #2223

@VlexWest

Description

@VlexWest

To Reproduce

Pushing changes builds a new image and container, but the old container keeps running, so updates never take effect.

  1. Push code changes.
  2. A new image/container is built, but the old container remains running.
  3. On portainer the image of the old container is not being tagged as :latest anymore, but still running

Current vs. Expected behavior

Current
Old container stays running, new build isn’t deployed.
I need to:

  1. Stop the application
  2. docker system prune -af
  3. Redeploy the application

clean cache toggle is not doing anything except the deployment takes longer, but in the end it's not replacing the old container.

Update: If I remove the old container manually (e.g. via Portainer) then the new container spawns out of nowhere..

Expected
Old container stops and is replaced by the newly built container.

Provide environment information

OS: Ubuntu 24.04 LTS
Dokploy: 0.24.4

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

Local Development

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

Same server where Dokploy is installed

Additional context

I'm not sure, but I freshly added a remote server & I think since then this issue is occuring.
It's failing for remote & local deployments tho. :(

Will you send a PR to fix it?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions