Update docker documentation usage with Zola 0.14.0 (#1594)
This commit is contained in:
parent
8802e77880
commit
f866e0b650
|
@ -91,27 +91,27 @@ Zola is available on [Docker Hub](https://hub.docker.com/r/balthek/zola).
|
||||||
It has no `latest` tag, you will need to specify a [specific version to pull](https://hub.docker.com/r/balthek/zola/tags).
|
It has no `latest` tag, you will need to specify a [specific version to pull](https://hub.docker.com/r/balthek/zola/tags).
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ docker pull balthek/zola:0.13.0
|
$ docker pull balthek/zola:0.14.0
|
||||||
$ docker run balthek/zola:0.13.0 --version
|
$ docker run balthek/zola:0.14.0 --version
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Build
|
#### Build
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ docker run -u "$(id -u):$(id -g)" -v $PWD:/app --workdir /app balthek/zola:0.13.0 build
|
$ docker run -u "$(id -u):$(id -g)" -v $PWD:/app --workdir /app balthek/zola:0.14.0 build
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Serve
|
#### Serve
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ docker run -u "$(id -u):$(id -g)" -v $PWD:/app --workdir /app -p 8080:8080 balthek/zola:0.13.0 serve --interface 0.0.0.0 --port 8080 --base-url localhost
|
$ docker run -u "$(id -u):$(id -g)" -v $PWD:/app --workdir /app -p 8080:8080 balthek/zola:0.14.0 serve --interface 0.0.0.0 --port 8080 --base-url localhost
|
||||||
```
|
```
|
||||||
|
|
||||||
You can now browse http://localhost:8080.
|
You can now browse http://localhost:8080.
|
||||||
|
|
||||||
> To enable live browser reload, you may have to bind to port 1024. Zola searches for an open
|
> To enable live browser reload, you may have to bind to port 1024. Zola searches for an open
|
||||||
> port between 1024 and 9000 for live reload. The new docker command would be
|
> port between 1024 and 9000 for live reload. The new docker command would be
|
||||||
> `$ docker run -u "$(id -u):$(id -g)" -v $PWD:/app --workdir /app -p 8080:8080 -p 1024:1024 balthek/zola:0.13.0 serve --interface 0.0.0.0 --port 8080 --base-url localhost`
|
> `$ docker run -u "$(id -u):$(id -g)" -v $PWD:/app --workdir /app -p 8080:8080 -p 1024:1024 balthek/zola:0.14.0 serve --interface 0.0.0.0 --port 8080 --base-url localhost`
|
||||||
|
|
||||||
## Windows
|
## Windows
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue