coollabsio / coolify

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

[Bug]: Remove unused networks #2726

Open ingokpp opened 1 week ago

ingokpp commented 1 week ago

Description

When deleting a resource/project in coolify the underlaying docker network won't get deleted.

Minimal Reproduction (if possible, example repository)

  1. Create a project using docker-compose
  2. Define some custom networks
  3. Delete the project
  4. run "docker network ls" or docker network prune

Exception or Error

No response

Version

v4.0.0-beta.306

ingokpp commented 1 week ago

I noticed that it is not possible to remove the networks by hand because docker tells me that the network still has active endpoints which i guess only can be coolify itself.

maisen20 commented 1 week ago

You have to remove this networks in coolify. Go to Servers > choose server > Destinations > Scan Destinations.

There you should see all networks. You can click on every single network so it gets added to the section „Available for using:“ above. There you can click and delete every single network.

But yes, it’s very annoying that these networks have to be deleted manually.