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
Metadata
Release files for portndock 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| portndock-1.0.2.tar.gz | 25.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| portndock-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 53.0 kB
Release files / portndock-1.0.2.tar.gz
| Download URL | portndock-1.0.2.tar.gz |
|---|---|
| Size | 25.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c913ebdcd84e6d119dacb189ae3048d4e85eb91e8e637092e20efef05957950b
|
|
BLAKE2b-256 checksum How to use checksums |
e3f201c3198a6f279e709f68bed4fbd650e7e02a2f56469d0e60ea56ba8b1833
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2025.
Transparency logRelease files / portndock-1.0.2-py3-none-any.whl
| Download URL | portndock-1.0.2-py3-none-any.whl |
|---|---|
| Size | 27.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
050a3d8620423e737e9db92abb28b706dea19ddb74db1c63c29e76d040b3aa7c
|
|
BLAKE2b-256 checksum How to use checksums |
5d2482f09ab1eb66dfb7ca8930f1031287fecfffa8d03b5fa5b1a527455ca972
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2025.
Transparency log