0

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

0
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, privacy policy and cookie policy

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