79654929

Date: 2025-06-05 17:18:40
Score: 0.5
Natty:
Report link

Why it probably happened:
Docker Compose tracks containers by project name + service name, not by container_name. Running docker compose up in different folders with the same service name but different container_name causes Compose to stop containers from the other project because it thinks they belong to the same service.

How to fix:

Use different service names in each compose file,

Or use the same service names but run with different project names via docker compose -p <project_name> up -d

Though, tell me if it's not the case.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): Why it
  • Low reputation (1):
Posted by: Almohtady Bellah