What is the purpose of EXPOSE command in Docker file?
Asked: Apr 30, 2023
We use EXPOSE command to in form Docker that the Container will listen on a specific network port during runtime. But these ports onContainer may not be accessible to the host. We can use –p to publish a range of ports fromContainer.