Docker can not using port on windows

I follow the project to install.

but I can not link to the website

The project can work without docker

env : window11
docker version :

 Cloud integration: v1.0.35-desktop+001
 Version:           24.0.5
 API version:       1.43
 Go version:        go1.20.6
 Git commit:        ced0996
 Built:             Fri Jul 21 20:36:24 2023
 OS/Arch:           windows/amd64
 Context:           default

Server: Docker Desktop 4.22.1 (118664)
  Version:          24.0.5
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.6
  Git commit:       a61e2b4
  Built:            Fri Jul 21 20:35:45 2023
  OS/Arch:          linux/amd64
  Experimental:     false
  Version:          1.6.21
  GitCommit:        3dce8eb055cbb6872793272b4f20ed16117344f8
  Version:          1.1.7
  GitCommit:        v1.1.7-0-g860f061
  Version:          0.19.0
  GitCommit:        de40ad0

Good morning,

for troubleshooting you could check if the container is running with docker ps -a. Is the container running or has it stopped prematurely?
With docker-compose logs or docker-compose logs <servicename> you can check for (error-)messages from all containers or from one of the services defined in you docker-compose.yml.

1 Like

My docker is running.
I use windows desktop to manage. I enter the docker and then type python
It can show the message .

But my actual browser can not link anything.

If you do not use the CLI to do some troubleshooting you can also check with the GUI

In the example above you can see that computers port 6379 is forwarded to container’s port 6379 and that the container is running.
Is there something similar displayed for your container? Otherwise your browser will not be able to connect to the container using http://localhost.