Run update.sh
This commit is contained in:
parent
48e0d509ae
commit
bdbefab06e
|
|
@ -71,7 +71,7 @@ backend default {
|
||||||
Then run:
|
Then run:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker run --name my-running-varnish -v /path/to/default.vcl:/etc/varnish/default.vcl:ro --tmpfs /usr/local/var/varnish:exec -d varnish
|
$ docker run --name my-running-varnish -v /path/to/default.vcl:/etc/varnish/default.vcl:ro --tmpfs /var/lib/varnish:exec -d varnish
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternatively, a simple `Dockerfile` can be used to generate a new image that includes the necessary `default.vcl` (which is a much cleaner solution than the bind mount above):
|
Alternatively, a simple `Dockerfile` can be used to generate a new image that includes the necessary `default.vcl` (which is a much cleaner solution than the bind mount above):
|
||||||
|
|
@ -91,7 +91,7 @@ $ docker run --name my-running-varnish --tmpfs /var/lib/varnish:exec -d my-varni
|
||||||
### Exposing the port
|
### Exposing the port
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker run --name my-running-varnish --tmpfs /usr/local/var/varnish:exec -d -p 8080:80 my-varnish
|
+$ docker run --name my-running-varnish --tmpfs /var/lib/varnish:exec -d -p 8080:80 my-varnish
|
||||||
```
|
```
|
||||||
|
|
||||||
Then you can hit `http://localhost:8080` or `http://host-ip:8080` in your browser.
|
Then you can hit `http://localhost:8080` or `http://host-ip:8080` in your browser.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue