What is the purpose of EXPOSE command in Docker file?

0

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.

Devops docker
asked Apr 30, 2023 at 23:04
Sign in to add a comment

0 Answers

0
📝 No answers yet!

Be the first to answer this interview question.

Your Answer

Sign in to post your answer and help the community.