Why are the port options not available in docker desktop (windows 10)?

enter image description here

current settings (I have tried both engine options): enter image description here


1 Answer 1


The Docker Desktop is giving the option to publish ports to the container ports that have been "exposed" in the image. Exposing a port in an image is documentation from the image creator to those running the image, to know what port the application inside the container should be listening. And in this case, it's Docker Desktop that's running the image and looking at that documentation.

More details on "expose" can be found in Docker's documentation: https://docs.docker.com/engine/reference/builder/#expose

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.