GitBook: [ce-2.6] one page modified

ce-2.6
James Carppe 2021-09-27 23:11:47 +00:00 committed by gitbook-bot
parent 575dc3af4e
commit 848b551e71
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF
1 changed files with 4 additions and 8 deletions

View File

@ -1,14 +1,10 @@
# How do I change the port that Portainer uses?
By default, Portainer runs on port `9000`. To change the port, you must override the entry point and specify the port you want to use. For example, to force Portainer to bind to port `443` you will need to do the following:
By default, Portainer runs on port `9000`. To change the port, edit the `-p` parameter of your `docker run` command to suit. For example, if you wanted Portainer to listen on port 443:
#### If launching Portainer via docker run:
Add the flag `"--entrypoint /portainer -p :443"`.
#### If launching Portainer via via docker-compose:
Add the flag `"entrypoint: /portainer -p :443"`.
```text
-p 443:9000
```