I'm using this tool to identify which docker container ports are published or exposed (from the container) as well as which internal ports are available on your containers. This tool helps see where there may be port clashes, which ports are exposed and could be hidden, and helps find an available port to use for new containers. It has various ways of sorting, filtering and grouping the ports view.
Yes you could track all your open and internal ports in a spreadsheet, but if you have 40 or 50 containers running, and spin others up and down, it gets difficult to keep that spreadsheet up to date. Portracker gives you a live view of all system ports, and docker published and internal ports.
I also spend a few minutes explaining how and why docker ports are exposed, and how you would point to them from a reverse proxy such as Nginx Proxy Manager or your PC on your LAN.
CHAPTERS:
Background on exposing docker ports 02:00
Portracker user interface 11:41
Docker internal ports 18:33
My Docker Compose file 20:48
LINKS:
Portracker GitHub site https://github.com/mostafa-wahied/portracker
My video about docker ports and home hosting https://www.youtube.com/watch?v=DZRG2sezIl4
My docker compose file https://github.com/Danie10/yaml-snippets/blob/main/portrackercompose.yaml
FOLLOW ME:
My daily tech blog at https://gadgeteer.co.za/blog
I post to all these social networks at https://gadgeteer.co.za/social-networks-i-post-to/
Videos are posted to YouTube at https://www.youtube.com/@GadgeteerZA, Odysee at https://odysee.com/@GadgeteerZA and Peertube at https://video.hardlimit.com/c/gadgeteerza/videos
#technology #docker #containers #ports