Skip to content

Cannot connect to portainer on port 9000 or 9443Β #3991

@shahab-cl

Description

@shahab-cl

βœ… Have you read and understood the above guidelines?

yes

πŸ“œ What is the name of the script you are using?

ct/docker.sh

πŸ“‚ What was the exact command used to execute the script?

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/docker.sh)"

βš™οΈ What settings are you using?

  • Default Settings
  • Advanced Settings

πŸ–₯️ Which Linux distribution are you using?

No response

πŸ“ Provide a clear and concise description of the issue.

When prompted to install portainer, the image gets installed but port 9000 is not open.
I tried to curl to the open ports (8000, 9443) and they do not respond with portainer UI.

Is it possible to add port 9000 to the port mapping on

-p 8000:8000 \

-p 8000:8000 \

Also is it possile to open the git repo so others can create PR to fix issue.

πŸ”„ Steps to reproduce the issue.

docker run -d
-p 8000:8000
-p 9000:9000
-p 9443:9443
...
to test if this works. I was not able to test using bask as portainer does not contain /bin/bash.

❌ Paste the full error output (if available).

Trying to curl to the lxc server on port 9000

root@docker-lxc:~# curl http://192.168.1.245:9000

  • Trying 192.168.1.245:9000...
  • connect to 192.168.1.245 port 9000 failed: Connection refused
  • Failed to connect to 192.168.1.245 port 9000 after 0 ms: Couldn't connect to server
  • Closing connection 0
    curl: (7) Failed to connect to 192.168.1.245 port 9000 after 0 ms: Couldn't connect to server

root@docker-lxc:~# curl -vv http://192.168.1.245:9443 --insecure

  • Trying 192.168.1.245:9443...
  • Connected to 192.168.1.245 (192.168.1.245) port 9443 (#0)

GET / HTTP/1.1
Host: 192.168.1.245:9443
User-Agent: curl/7.88.1
Accept: /

  • HTTP 1.0, assume close after body
    < HTTP/1.0 400 Bad Request
    <
    Client sent an HTTP request to an HTTPS server.
  • Closing connection 0

root@docker-lxc:~# curl -vv http://192.168.1.245:8000

  • Trying 192.168.1.245:8000...
  • Connected to 192.168.1.245 (192.168.1.245) port 8000 (#0)

GET / HTTP/1.1
Host: 192.168.1.245:8000
User-Agent: curl/7.88.1
Accept: /

< HTTP/1.1 404 Not Found
< Date: Tue, 22 Apr 2025 22:39:41 GMT
< Content-Length: 9
< Content-Type: text/plain; charset=utf-8
<

  • Connection #0 to host 192.168.1.245 left intact
    Not foundroot@docker-lxc:~#

πŸ–ΌοΈ Additional context (optional).

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions