Skip to main content

Dev-focused port watcher/killer with Docker awareness and live TUI

Project description

portndock

A cross-platform terminal tool for developers to easily find and kill processes using ports. Perfect for fixing "port already in use" errors!

Features

  • Find processes by port - See what's using any port
  • Docker aware - Handles containers intelligently
  • Interactive TUI - Color-coded safety levels
  • Related processes - Find Electron renderers and background processes
  • Safe by default - Warns about dangerous processes
  • Cross-platform - Windows, macOS, Linux
  • Zero dependencies - Pure Python

Installation

# Recommended (handles environment isolation)
pipx install portndock

# Upgrade to latest version
pipx upgrade portndock

# Alternatives
pip install portndock --user
python3 -m venv env && source env/bin/activate && pip install portndock

Local Development

# Clone the repository
git clone https://github.com/decentaro/portndock.git
cd portndock

# Run directly from source (no installation needed)
python3 -m portndock
# or with sudo for system processes
sudo python3 -m portndock ui

# Install in development mode (optional)
pip install -e .

Usage

# Interactive mode (recommended)
portndock

# Command line
portndock kill --port 3000
portndock list
portndock free --port 8080

Interactive Controls

  • ↑/↓ - Navigate • Enter - Kill process • D - Stop container
  • V - Filter ports • P - Filter protocols • E - Toggle related processes
  • X - Toggle IPv6 • ? - Help • Q - Quit

Color Coding

  • Blue - Docker containers (safe)
  • Green - Your processes (safe)
  • Yellow - System processes (careful)
  • Red - Critical processes (danger)

Examples

portndock ui                   # Interactive TUI
portndock kill --port 3000     # Kill by port
portndock kill --pid 12345     # Kill by PID  
portndock list --protocol tcp  # List TCP only
portndock free --port 8080     # Free port (Docker-aware)

Requirements

Python 3.8+ • No dependencies • Cross-platform

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

portndock-1.0.0.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

portndock-1.0.0-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

Details for the file portndock-1.0.0.tar.gz.

File metadata

  • Download URL: portndock-1.0.0.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for portndock-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f0995bf9133004361e0199aa3fc54c06c47279883bcebe301b399076cf779b43
MD5 260f7347667c4beea028d6c732952af2
BLAKE2b-256 8e4d24e26e5e463c1ae81b8dddc47777ddab2b2f058877bcd43db2c0a6c7ff27

See more details on using hashes here.

Provenance

The following attestation bundles were made for portndock-1.0.0.tar.gz:

Publisher: publish.yml on decentaro/portndock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file portndock-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: portndock-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 27.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for portndock-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1113d28235f883c27ecd4cc8cd9dd06696a1180c29a64a024eae5ebd29d3ae1e
MD5 5add8f5ba34906cf625d124ef4791aed
BLAKE2b-256 b93a186cb8b4918f7052f79d892706be7af9876f336812fde179a995d4c14bb0

See more details on using hashes here.

Provenance

The following attestation bundles were made for portndock-1.0.0-py3-none-any.whl:

Publisher: publish.yml on decentaro/portndock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page