How to assign a custom port of the hosting Linux in HTML5 Gateway Docker deployment

How to assign a custom port of the hosting Linux in HTML5 Gateway Docker deployment

87
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 15:55 PM


Objective


How to assign a custom port of the hosting Linux in HTML5 Gateway Docker deployment

Environment


10.10;11.1;11;11.2;11.3;11.4;11.5;11.6

Procedure


Users can change port 443 to their preferred port under  in  -p 443:8443
 
Example in  docs.cyberark.com

sudo docker run --restart unless-stopped -ti -p 443:8443 -v <certificates directory>:/opt/import:ro -d --cap-drop=all --cap-add={CHOWN,DAC_OVERRIDE,FOWNER,SETGID,SETUID} -e AcceptCyberArkEULA=yes -e EndPointAddress=https://<PVWA URL> --hostname <container name> --name <container name> cahtml5gw:<version_tag>

In CyberArk's example , -p 443:8443 means to bind port 8443 of the container to TCP port 443 of the hosting Linux. If port 443 is taken, you can change it to something else, the binding is handled by Docker.  E.g you can change it to -p 8443:8443, so it listens to port 8443 of the hosting Linux.


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000x3KCAQ&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail