How to Merge a Git Detached HEAD Back to Master - Resolving 'Denied Access' When Pulling Docker Images-Fix Nginx 502 Bad Gateway in Docker Containers

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.