Portainer Localhost does not allow connection

Hi I have a problem I installed docker and portair on windows pc but I can’t access portainer on the browser →
https://localhost:9443/

Localhost does not allow connection.
I made a host connection but nothing
I think it’s because of xampp that I had previously installed how to manage this problem please?
[09:15]
Here is what I used

docker run -d -p 8000:8000 -p 9443:9443 --name portainer \
    --restart=always \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v portainer_data:/data \
    portainer/portainer-ce:2.9.3

Envoyer un message dans #containers

Finally, if your issue has not been addressed elsewhere, running:

  • :whale: :arrow_right: Settings :arrow_right: Diagnose & Feedback :arrow_right: Open Issues.

This forum is not an official product support or issue reporting channel.

Please, use the </> button to insert code and links which you don’t want to be clickable. Otherwise the markdown filter will change your post. I fixed it for you.

Can you make it work on an other port like 9444?

docker run -d -p 8000:8000 -p 9444:9443 --name portainer \
    --restart=always \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v portainer_data:/data \
    portainer/portainer-ce:2.9.3

Have you checked the container logs?

What do you mean by host connection? If you mean --network=host that would not help you to use localhost from Windows. The host network is the network of the virtual machine behind Docker Desktop.

I would also recommend you to try the new portainer extension which you can install from the Docker Desktop GUI. You can then use portainer from the Docker Desktop GUI instead of from a browser.