docker-port-forward-shadow-debug

Community

Fix Docker port shadowing for reverse proxies.

Authorfreedomw1987
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill resolves the common issue where Docker containers expose ports 80 or 443 to the host, shadowing directly running host services like nginx, which causes reverse proxy traffic to be intercepted by the wrong process, leading to unexpected server response headers, 404 errors, or misrouted API requests.

Core Features & Use Cases

  • Step-by-Step Diagnostic Checklist: Commands to verify actual serving processes via HTTP headers, locate conflicting Docker containers, and identify port mapping configurations.
  • Temporary and Permanent Fix Guidance: Instructions to kill shadow processes for immediate testing and update Docker configurations to eliminate port conflicts long-term.
  • Clarification of Misleading Tool Output: Explains why tools like ss may show incorrect listener information when Docker port forwarding is active.
  • Real-World Use Case: If your nginx reverse proxy returns unexpected server: Caddy headers, this Skill helps you trace the issue to a Docker container running Caddy with a -p 443:443 port mapping.

Quick Start

Use the docker-port-forward-shadow-debug skill to identify and fix Docker containers that are shadowing your host's reverse proxy ports 80 or 443.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: docker-port-forward-shadow-debug
Download link: https://github.com/freedomw1987/tree_monstor/archive/main.zip#docker-port-forward-shadow-debug

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 537,000+ vetted skills library on demand.