Skip to content

Docker cleanup is not doing what it's supposed to #3014

@fir4tozden

Description

@fir4tozden

To Reproduce

Create MongoDB service and delete it. But this problem is not specific to this.

Current vs. Expected behavior

Deleting the service leaves the image and volume in Docker. This is normal. However, we expect the Web Server > Space: Clean All operation to delete these unused images and volumes. However, this operation leaves these unused images and volumes in Docker. If we manually perform this operation with sudo docker system prune -af and sudo docker volume prune -af, we will see that they are deleted. These will probably remain there without being cleaned even when the Daily Docker Cleanup setting is turned on.

Even when we update Dokploy, the old Dokploy image remains. This means an extra +3 GB of storage with each update.

Cleanups are important. In fact, it's recommended that the Daily Docker Cleanup setting be enabled by default. That is, if these cleaning issues are resolved.

Provide environment information

Ubuntu 24.04 LTS

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

Application, Databases, 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

No response

Will you send a PR to fix it?

No

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