diff --git a/faq/installing/how-do-i-change-the-port-that-portainer-uses.md b/faq/installing/how-do-i-change-the-port-that-portainer-uses.md index b38a41e..ae3c302 100644 --- a/faq/installing/how-do-i-change-the-port-that-portainer-uses.md +++ b/faq/installing/how-do-i-change-the-port-that-portainer-uses.md @@ -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 +```