r/docker • • Oct 21 '26

Hot reload problem with Docker

/r/Nestjs_framework/comments/1xbtzc8/hot_reload_problem_with_docker/
1 Upvotes

2 comments sorted by

1

u/Immediate_Wheel1953 Oct 21 '26

I ran into this exact thing with Nest in Docker not long ago. Turned out the old process was still hanging on to the port when the watcher restarted it, so the new one crashed before it could bind. Run docker ps and make sure there isn't a stale container still running with the same port mapping, that was my culprit. Also worth checking that your start command binds to 0.0.0.0, because Docker Desktop on macOS can be fussy about localhost bindings.

1

u/Afraid_Bid847 Oct 21 '26

Thanks. How did you solved the problem?