GitBook: [ce-2.6] one page modified
parent
575dc3af4e
commit
848b551e71
|
@ -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
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue