Browse Source

Merge pull request #755 from katzien/add-note-about-ports

Add a note about publishing haproxy's input port to the host
yosifkit 9 years ago
parent
commit
c96ab22a51
1 changed files with 2 additions and 0 deletions
  1. 2 0
      haproxy/content.md

+ 2 - 0
haproxy/content.md

@@ -41,6 +41,8 @@ $ docker run -it --rm --name haproxy-syntax-check haproxy:1.5 haproxy -c -f /usr
 $ docker run -d --name my-running-haproxy my-haproxy
 $ docker run -d --name my-running-haproxy my-haproxy
 ```
 ```
 
 
+You may need to publish the ports your haproxy is listening on to the host by specifying the -p option, for example -p 8080:80 to publish port 8080 from the container host to port 80 in the container. Make sure the port you're using is free.
+
 ## Directly via bind mount
 ## Directly via bind mount
 
 
 ```console
 ```console