docker port mycontainer
EXPOSE 8000/tcp EXPOSE 53/udp
Treat EXPOSE as a contract. It tells other developers and orchestration tools (like Kubernetes) exactly where to look for your service.