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

View File

@ -35,10 +35,21 @@ FROM haproxy:1.5
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
``` ```
Build and run: ## Build the container
```console ```console
$ docker build -t my-haproxy . $ 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 $ docker run -d --name my-running-haproxy my-haproxy
``` ```

View File

@ -72,7 +72,7 @@ Where `src/` is the directory containing all your php code. Then, run the comman
```console ```console
$ docker build -t my-php-app . $ docker build -t my-php-app .
$ docker run -it --rm --name my-running-app my-php-app $ docker run -d --name my-running-app my-php-app
``` ```
We recommend that you add a custom `php.ini` configuration. `COPY` it into `/usr/local/etc/php` by adding one more line to the Dockerfile above and running the same commands to build and run: We recommend that you add a custom `php.ini` configuration. `COPY` it into `/usr/local/etc/php` by adding one more line to the Dockerfile above and running the same commands to build and run:
@ -144,7 +144,7 @@ RUN curl -fsSL 'https://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.
If you don't want to include a `Dockerfile` in your project, it is sufficient to do the following: If you don't want to include a `Dockerfile` in your project, it is sufficient to do the following:
```console ```console
$ docker run -p 80:80 -it --rm --name my-apache-php-app -v "$PWD":/var/www/html php:5.6-apache $ docker run -d -p 80:80 --name my-apache-php-app -v "$PWD":/var/www/html php:5.6-apache
``` ```
# License # License