Run update.sh

This commit is contained in:
Docker Library Bot
2016-02-11 08:45:12 -08:00
parent 92a817efb4
commit 211d721fbd
2 changed files with 14 additions and 3 deletions
+12 -1
View File
@@ -35,10 +35,21 @@ FROM haproxy:1.5
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
```
Build and run:
## Build the container
```console
$ docker build -t my-haproxy .
```
## Test the configuration file
```console
$ docker run -it --rm --name haproxy-syntax-check haproxy:1.5 haproxy -c -f /usr/local/etc/haproxy/haproxy.cfg
```
## Run the container
```console
$ docker run -d --name my-running-haproxy my-haproxy
```