Skip to content

[Bug]: Deployment failing due to helper container name being already in use #7566

@kondziorex7

Description

@kondziorex7

Error Message and Logs

2025-Dec-10 10:55:21.005030
Preparing container with helper image: ghcr.io/coollabsio/coolify-helper:1.0.12
2025-Dec-10 10:55:21.487771
[CMD]: docker stop --time=30 nwg8sk48wgccksok4s8s8kog
2025-Dec-10 10:55:21.487771
Flag --time has been deprecated, use --timeout instead
2025-Dec-10 10:55:22.258395
nwg8sk48wgccksok4s8s8kog
2025-Dec-10 10:55:22.641896
[CMD]: docker rm -f nwg8sk48wgccksok4s8s8kog
2025-Dec-10 10:55:22.641896
Error response from daemon: removal of container nwg8sk48wgccksok4s8s8kog is already in progress
2025-Dec-10 10:55:23.122942
[CMD]: docker run -d --network coolify --name nwg8sk48wgccksok4s8s8kog  --rm -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/coollabsio/coolify-helper:1.0.12
2025-Dec-10 10:55:23.122942
docker: Error response from daemon: Conflict. The container name "/nwg8sk48wgccksok4s8s8kog" is already in use by container "18fed2d934fa481bfc0f16a6338c65b9077a1ea9b5c482827827c3f22c9665ef". You have to remove (or rename) that container to be able to reuse that name.
2025-Dec-10 10:55:23.122942
2025-Dec-10 10:55:23.122942
Run 'docker run --help' for more information
2025-Dec-10 10:55:23.161878
Deployment failed: Command execution failed (exit code 125): docker run -d --network coolify --name nwg8sk48wgccksok4s8s8kog  --rm -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/coollabsio/coolify-helper:1.0.12
2025-Dec-10 10:55:23.161878
Error: docker: Error response from daemon: Conflict. The container name "/nwg8sk48wgccksok4s8s8kog" is already in use by container "18fed2d934fa481bfc0f16a6338c65b9077a1ea9b5c482827827c3f22c9665ef". You have to remove (or rename) that container to be able to reuse that name.
2025-Dec-10 10:55:23.161878
2025-Dec-10 10:55:23.161878
Run 'docker run --help' for more information
2025-Dec-10 10:55:23.183039
Gracefully shutting down build container: nwg8sk48wgccksok4s8s8kog

Steps to Reproduce

This doesn't happen all the time, but I've found it happen most frequently for rolling deployments, however it happens with Consistent Container Names enabled too.

  1. Deploy an app

Example Repository URL

No response

Coolify Version

v4.0.0-beta.444

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 24.04.3 LTS

Additional Information

The issue appears to be very similar to #6767 although this one should be fixed in the version we're running (v444). There is some issue with helper container that it often is still running once coolify tries to spin up a new one.

Example full log of failed deployment - https://pastebin.com/QLQEEaZN, password to access it is BRzyS0JWfr.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 Possible BugReported issues that need to be reproduced by the team.🔍 TriageIssues that need assessment and prioritization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions