79520533

Date: 2025-03-19 14:53:52
Score: 1.5
Natty:
Report link

I got the "socket hang up" error after upgrading to .NET 8 and changing the Docker image. The problem was an incorrect port mapping in my `docker-compose.yml`. I had `ports: 8005:80`, which worked before the upgrade. However, the new .NET 8 images default to port 8080. Changing my `docker-compose.yml` to `ports: 8005:8080` fixed the issue.
**Key takeaway:** Ensure your `docker-compose.yml` port mapping matches the port your app listens on inside the container.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Fernanda TenĂ³rio