How to Fix a Detached HEAD in Git Using SourceTree - Docker Volume Permission Denied as Root Fix-Docker Socket Permission Issues Causing Nginx 502

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