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.2.tar.gz (25.3 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.2-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: portndock-1.0.2.tar.gz
  • Upload date:
  • Size: 25.3 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.2.tar.gz
Algorithm Hash digest
SHA256 c913ebdcd84e6d119dacb189ae3048d4e85eb91e8e637092e20efef05957950b
MD5 1dae730b9feefc15c65483b27c1375a9
BLAKE2b-256 e3f201c3198a6f279e709f68bed4fbd650e7e02a2f56469d0e60ea56ba8b1833

See more details on using hashes here.

Provenance

The following attestation bundles were made for portndock-1.0.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: portndock-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 050a3d8620423e737e9db92abb28b706dea19ddb74db1c63c29e76d040b3aa7c
MD5 316035074c5ccdd6659d877e0ffd02b1
BLAKE2b-256 5d2482f09ab1eb66dfb7ca8930f1031287fecfffa8d03b5fa5b1a527455ca972

See more details on using hashes here.

Provenance

The following attestation bundles were made for portndock-1.0.2-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