-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: swarm doesn’t kill off old containers #2053
Comments
Currently I’m testing a less than ideal workaround where I stop the containers and then deploy again. |
Stopping all services before deploy resolves this issue although this isn't ideal and prevents rolling updates. |
This is a shot in the dark, but maybe the solution is to add the coolify/app/Jobs/ApplicationDeploymentJob.php Line 1157 in 1c12cb9
From what I'm observing, Coolify generates a new service name per deployment. Without the I've thrown together PR #5141 in case it is the solution. However, I haven't gotten around to testing it yet. |
Out of interest is this seperate from dockers rollback feature for swarm, as it will keep your old containers incase you need to rollback |
I believe this is separate. From my understanding, the rollback feature keeps old images. When you decide to rollback, it creates a new deployment using the old image. It doesn't keep old containers running. |
If this is generating a diff uuid everytime then it will still create a new stack and leave old one running Maybe switch to name? Oh its the id of the service inside the app that changes, OK yeah this should be fine then |
Description
Using docker swarm old containers are still active and running after a deploy.
Minimal Reproduction (if possible, example repository)
Deploy a nodejs app using docker swarm
Exception or Error
Old containers still running after a deploy & logs not being output.
Version
Lastest, however this has been going on for some time.
The text was updated successfully, but these errors were encountered: