<p>The Docker Desktop is giving the option to publish ports to the container ports that have been &quot;exposed&quot; 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.</p>
<p>More details on &quot;expose&quot; can be found in Docker's documentation: <a href="https://docs.docker.com/engine/reference/builder/#expose" rel="nofollow noreferrer">https://docs.docker.com/engine/reference/builder/#expose</a></p>

CC BY-SA 4.0
2021-03-05T18:29:48.003Z
2021-03-05T18:29:48.003Z
BMitch
<p>Why are the port options not available in docker desktop (windows 10)?</p>
<p><a href="https://i.sstatic.net/796fw.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/796fw.png" alt="enter image description here" /></a></p>
<p>current settings (I have tried both engine options):
<a href="https://i.sstatic.net/sp6vj.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/sp6vj.png" alt="enter image description here" /></a></p>

<docker>
Docker desktop Ports binding not available
risail
# Docker desktop Ports binding not available

(Asked by: username_0 on 2021-03-05)

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

[![enter image description here](https://i.sstatic.net/796fw.png)](https://i.sstatic.net/796fw.png)

current settings (I have tried both engine options):
[![enter image description here](https://i.sstatic.net/sp6vj.png)](https://i.sstatic.net/sp6vj.png)

**Tags:** docker


---

## 1 answers

### Answer by username_1 on 2021-03-05. Score: 1 | Accepted answer

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>


---

