coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
34.86k stars 1.91k forks source link

[Bug]: swarm doesn’t kill off old containers #2053

Open hkd987 opened 7 months ago

hkd987 commented 7 months ago

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.

hkd987 commented 7 months ago

Currently I’m testing a less than ideal workaround where I stop the containers and then deploy again.

hkd987 commented 7 months ago

Stopping all services before deploy resolves this issue although this isn't ideal and prevents rolling updates.