Browse Source

add note about daemon mode

David Buchmann 10 years ago
parent
commit
d2b95f092c
2 changed files with 4 additions and 0 deletions
  1. 2 0
      haproxy/README.md
  2. 2 0
      haproxy/content.md

+ 2 - 0
haproxy/README.md

@@ -21,6 +21,8 @@ Please refer to [upstream's excellent (and comprehensive) documentation](https:/
 
 It is also worth checking out the [`examples/` directory from upstream](http://www.haproxy.org/git?p=haproxy-1.5.git;a=tree;f=examples).
 
+**Note: Do not configure haproxy to run in daemon mode or the docker container will exit immediately after launching.**
+
 ## Create a `Dockerfile`
 
 	FROM haproxy:1.5

+ 2 - 0
haproxy/content.md

@@ -14,6 +14,8 @@ Please refer to [upstream's excellent (and comprehensive) documentation](https:/
 
 It is also worth checking out the [`examples/` directory from upstream](http://www.haproxy.org/git?p=haproxy-1.5.git;a=tree;f=examples).
 
+Note: Many configuration examples propose to put `daemon` into the `global` section to run haproxy as daemon. Do **not** configure this or the Docker container will exit immediately after launching because the haproxy process would go into the background.
+
 ## Create a `Dockerfile`
 
 	FROM haproxy:1.5