shriram1056
(shriram saravanan)
January 23, 2025, 8:38pm
1
port mapping is missing for container in windows docker desktop UI but when i run docker ps I can see the port mapping.
docker version 4.3.0. I have tried the latest version (4.3.7) as well.
rimelek
(Ćkos TakĆ”cs)
January 23, 2025, 11:40pm
2
Please, share the output of
docker version
When you do, please use code blocks (backticks not single quotes):
```
output
```
There is no Docker 4.3.0 and the latest Docker Desktop is also Docker Desktop 4.37.2
Can you also share a screenshot of Docker Desktop where you expect to see the port mapping and the command line output where you actually see it?
Also do you have problem with connections or you just donāt understand why the port maping is not shown on the UI?
The comand line output can show the exposed ports as well, but that is not the same as forwarded ports
shriram1056
(shriram saravanan)
January 24, 2025, 3:18pm
3
C:\Users\shrir>docker version
Client:
Cloud integration: v1.0.35+desktop.13
Version: 26.1.1
API version: 1.45
Go version: go1.21.9
Git commit: 4cf5afa
Built: Tue Apr 30 11:48:43 2024
OS/Arch: windows/amd64
Context: default
Server: Docker Desktop 4.30.0 (149282)
Engine:
Version: 26.1.1
API version: 1.45 (minimum version 1.24)
Go version: go1.21.9
Git commit: ac2de55
Built: Tue Apr 30 11:48:28 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.31
GitCommit: e377cd56a71523140ca6ae87e30244719194a521
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0
sorry, put the wrong version.
Iām expecting port forwarding for the postgres container in docker desktop
shrir@shriram MINGW64 ~
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
86d462223bf9 postgis/postgis:15-3.3 "docker-entrypoint.sā¦" 8 minutes ago Up 8 minutes 0.0.0.0:50264->5432/tcp compassionate_leavitt
eec6b2222a92 testcontainersofficial/ryuk:latest "/app" 8 minutes ago Up 8 minutes 0.0.0.0:50259->8080/tcp testcontainers-ryuk
no problem with connection, just the port forwarding not showing up on docker desktop sometimes as you see itās always listed when i run docker ps.
rimelek
(Ćkos TakĆ”cs)
January 25, 2025, 10:26am
4
That port should indeed be visible in Docker Desktop. I found this issue which could be related
opened 07:41PM - 24 Sep 24 UTC
needs-triage
version/4.34.2
### Description
On Windows 11.
When starting multiple containers in a cluster,ā¦ while the Docker Desktop is opened (UI) the `Port(s)` column is empty for all containers.
![image](https://github.com/user-attachments/assets/d6f5a354-f493-4676-b8f7-1a5ab1429541)
At the same time, `docker ps -a` shows that all ports are forwarded (as they should).
```
6c26feebab91 nats:2.10 "/nats-server -DV -jā¦" 8 minutes ago Up 8 minutes 0.0.0.0:54573->4222/tcp, 0.0.0.0:54574->6222/tcp, 0.0.0.0:54575->8222/tcp hardcore_aryabhata
541d98acef62 nats:2.10 "/nats-server -DV -jā¦" 8 minutes ago Up 8 minutes 0.0.0.0:54570->4222/tcp, 0.0.0.0:54571->6222/tcp, 0.0.0.0:54572->8222/tcp nervous_noyce
cc574bca697e nats:2.10 "/nats-server -DV -jā¦" 8 minutes ago Up 8 minutes 0.0.0.0:54567->4222/tcp, 0.0.0.0:54568->6222/tcp, 0.0.0.0:54569->8222/tcp hopeful_mccarthy
2e5266f65b27 nats:2.10 "/nats-server -DV -jā¦" 8 minutes ago Up 8 minutes 0.0.0.0:54564->4222/tcp, 0.0.0.0:54565->6222/tcp, 0.0.0.0:54566->8222/tcp friendly_robinson
884af34fe518 nats:2.10 "/nats-server -DV -jā¦" 8 minutes ago Up 8 minutes 0.0.0.0:54561->4222/tcp, 0.0.0.0:54562->6222/tcp, 0.0.0.0:54563->8222/tcp determined_raman
```
Switching to other tabs (Containers, Images etc.) and back doesn't help.
After closing and opening Docker Desktop UI - all ports are showing.
I start 6 NATS containers via `testcontainers` in go.
### Reproduce
1. Open UI.
2. Start containers with UI opened.
3. See that ports are not rendered.
4. Check that `docker ps -a` shows that ports are indeed forwarded.
6. Close and reopen UI.
7. Ports are rendered.
### Expected behavior
1. Open UI.
2. Start containers with UI opened.
3. See that ports are rendered as they appear.
### docker version
```bash
Client:
Version: 27.3.1
API version: 1.47
Go version: go1.22.7
Git commit: ce12230
Built: Fri Sep 20 11:42:27 2024
OS/Arch: windows/amd64
Context: desktop-linux
Server: Docker Desktop 4.34.2 (167172)
Engine:
Version: 27.2.0
API version: 1.47 (minimum version 1.24)
Go version: go1.21.13
Git commit: 3ab5c7d
Built: Tue Aug 27 14:15:15 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.20
GitCommit: 8fc6bcff51318944179630522a095cc9dbf9f353
runc:
Version: 1.1.13
GitCommit: v1.1.13-0-g58aa920
docker-init:
Version: 0.19.0
GitCommit: de40ad0
```
### docker info
```bash
Client:
Version: 27.3.1
Context: desktop-linux
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.16.2-desktop.1
Path: C:\Program Files\Docker\cli-plugins\docker-buildx.exe
compose: Docker Compose (Docker Inc.)
Version: v2.29.2-desktop.2
Path: C:\Program Files\Docker\cli-plugins\docker-compose.exe
debug: Get a shell into any image or container (Docker Inc.)
Version: 0.0.34
Path: C:\Program Files\Docker\cli-plugins\docker-debug.exe
desktop: Docker Desktop commands (Alpha) (Docker Inc.)
Version: v0.0.15
Path: C:\Program Files\Docker\cli-plugins\docker-desktop.exe
dev: Docker Dev Environments (Docker Inc.)
Version: v0.1.2
Path: C:\Program Files\Docker\cli-plugins\docker-dev.exe
extension: Manages Docker extensions (Docker Inc.)
Version: v0.2.25
Path: C:\Program Files\Docker\cli-plugins\docker-extension.exe
feedback: Provide feedback, right in your terminal! (Docker Inc.)
Version: v1.0.5
Path: C:\Program Files\Docker\cli-plugins\docker-feedback.exe
init: Creates Docker-related starter files for your project (Docker Inc.)
Version: v1.3.0
Path: C:\Program Files\Docker\cli-plugins\docker-init.exe
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
Version: 0.6.0
Path: C:\Program Files\Docker\cli-plugins\docker-sbom.exe
scout: Docker Scout (Docker Inc.)
Version: v1.13.0
Path: C:\Program Files\Docker\cli-plugins\docker-scout.exe
Server:
Containers: 7
Running: 7
Paused: 0
Stopped: 0
Images: 10
Server Version: 27.2.0
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 nvidia runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 8fc6bcff51318944179630522a095cc9dbf9f353
runc version: v1.1.13-0-g58aa920
init version: de40ad0
Security Options:
seccomp
Profile: unconfined
Kernel Version: 5.15.153.1-microsoft-standard-WSL2
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 16
Total Memory: 30.93GiB
Name: docker-desktop
ID: e5f34bca-d0cd-47bc-8def-3465ed625055
Docker Root Dir: /var/lib/docker
Debug Mode: false
HTTP Proxy: http.docker.internal:3128
HTTPS Proxy: http.docker.internal:3128
No Proxy: hubproxy.docker.internal
Labels:
com.docker.desktop.address=npipe://\\.\pipe\docker_cli
Experimental: false
Insecure Registries:
hubproxy.docker.internal:5555
127.0.0.0/8
Live Restore Enabled: false
WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
WARNING: daemon is not using the default seccomp profile
```
### Diagnostics ID
CEF5DC34-A3A4-4218-9359-96CB34C83452/20240924191727
### Additional Info
_No response_
Can you confirm if you stop Docker Desktop and start again, the port numbers appear?
meyay
(Metin Y.)
January 25, 2025, 10:54am
5
Doesnāt it make more sense to install the latest version?
Note: On Windows it is 4.37.1, on mac it is 4.37.2 (with has bug fixes specifc to the mac version)
1 Like
rimelek
(Ćkos TakĆ”cs)
January 25, 2025, 12:49pm
6
Of course @meyay is completely right. By the time I came back to your post, I forgot the version number. So first try to update Docker Desktop
shriram1056
(shriram saravanan)
January 25, 2025, 6:47pm
7
I did use the latesr version and had the same issue. So, i switched version that previously woked for me and i had the same issue
rimelek
(Ćkos TakĆ”cs)
January 25, 2025, 6:54pm
8
The second thing I forgot. Great Have you also tested what I wrote previously?
Depending on that, you can either comment on the previously linked existing issue or create a new one
shriram1056
(shriram saravanan)
January 25, 2025, 7:02pm
9
Yes, i have. The port number does appear on restarting the container but since the containers are created as a part of test run. Iād need to restart it multiple times due to this
rimelek
(Ćkos TakĆ”cs)
January 25, 2025, 7:09pm
10
I didnāt think it was a solution, but we canāt solve it. You can report it on GitHub where developers can see it. Since there is an existing issue describing the same problem, you can also comment on that.
system
(system)
Closed
February 4, 2025, 7:10pm
11
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.