ports docker code example
Example 1: check ports in use docker
docker container ls --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}" -a
Example 2: docker port
HOST:CONTAINER
Example 3: dockerfile expose udp port
EXPOSE 8285/udp
docker container ls --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}" -a
HOST:CONTAINER
EXPOSE 8285/udp