Skip to content

Commit

Permalink
dockerhub -> ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
Keats committed Dec 8, 2021
1 parent 24007b2 commit 2ded7f5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/content/documentation/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,24 +87,23 @@ $ snap install --edge zola

### Docker

Zola is available on [Docker Hub](https://hub.docker.com/r/balthek/zola).
Zola is available on [the GitHub registry](https://github.com/getzola/zola/pkgs/container/zola).
It has no `latest` tag, you will need to specify a [specific version to pull](https://hub.docker.com/r/balthek/zola/tags).

```sh
$ docker pull balthek/zola:0.14.0
$ docker run balthek/zola:0.14.0 --version
$ docker pull ghcr.io/getzola/zola:v0.15.1
```

#### Build

```sh
$ docker run -u "$(id -u):$(id -g)" -v $PWD:/app --workdir /app balthek/zola:0.14.0 build
$ docker run -u "$(id -u):$(id -g)" -v $PWD:/app --workdir /app ghcr.io/getzola/zola:v0.15.1 build
```

#### Serve

```sh
$ 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
$ docker run -u "$(id -u):$(id -g)" -v $PWD:/app --workdir /app -p 8080:8080 ghcr.io/getzola/zola:v0.15.1 serve --interface 0.0.0.0 --port 8080 --base-url localhost
```

You can now browse http://localhost:8080.
Expand Down

0 comments on commit 2ded7f5

Please sign in to comment.