skip to Main Content

how to count the num of ports in docker ps cmd?

docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES f56084659b2a nginx:alpine "/docker-entrypoint.…" 35 seconds ago Up 33 seconds 0.0.0.0:3456->3456/tcp, 0.0.0.0:38080->80/tcp xenodochial_perlman what is the cmd to actually count num of ports from PORTS column in 1 line?

VIEW QUESTION
Back To Top
Search