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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c913ebdcd84e6d119dacb189ae3048d4e85eb91e8e637092e20efef05957950b
|
|
| MD5 |
1dae730b9feefc15c65483b27c1375a9
|
|
| BLAKE2b-256 |
e3f201c3198a6f279e709f68bed4fbd650e7e02a2f56469d0e60ea56ba8b1833
|
Provenance
The following attestation bundles were made for portndock-1.0.2.tar.gz:
Publisher:
publish.yml on decentaro/portndock
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
portndock-1.0.2.tar.gz -
Subject digest:
c913ebdcd84e6d119dacb189ae3048d4e85eb91e8e637092e20efef05957950b - Sigstore transparency entry: 459722321
- Sigstore integration time:
-
Permalink:
decentaro/portndock@37c5b00f4d1a817073e65be36c18ddca8ea0b81f -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/decentaro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@37c5b00f4d1a817073e65be36c18ddca8ea0b81f -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
050a3d8620423e737e9db92abb28b706dea19ddb74db1c63c29e76d040b3aa7c
|
|
| MD5 |
316035074c5ccdd6659d877e0ffd02b1
|
|
| BLAKE2b-256 |
5d2482f09ab1eb66dfb7ca8930f1031287fecfffa8d03b5fa5b1a527455ca972
|
Provenance
The following attestation bundles were made for portndock-1.0.2-py3-none-any.whl:
Publisher:
publish.yml on decentaro/portndock
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
portndock-1.0.2-py3-none-any.whl -
Subject digest:
050a3d8620423e737e9db92abb28b706dea19ddb74db1c63c29e76d040b3aa7c - Sigstore transparency entry: 459722339
- Sigstore integration time:
-
Permalink:
decentaro/portndock@37c5b00f4d1a817073e65be36c18ddca8ea0b81f -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/decentaro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@37c5b00f4d1a817073e65be36c18ddca8ea0b81f -
Trigger Event:
push
-
Statement type: