Fix 'pip install externally managed environment' Error - Fix Nginx Upstream Connection Refused in Docker-Docker Container Stops Immediately: Exit Code 0

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.