Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix admonition, line spacing #15462

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions docs/sources/send-data/docker-driver/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ Docker plugins are not supported on Windows; see the [Docker Engine managed plug
{{< /admonition >}}

Documentation on configuring the Loki Docker Driver can be found on the
[configuration page]({{< relref "./configuration" >}}).

If you have any questions or issues using the Docker plugin, open an issue in
If you have any questions or issues using the Docker plugin, open an issue in
the [Loki repository](https://github.com/grafana/loki/issues).

## Install the Docker driver client
Expand All @@ -31,24 +29,26 @@ Run the following command to install the plugin, updating the release version if
```bash
docker plugin install grafana/loki-docker-driver:2.9.2 --alias loki --grant-all-permissions
```
{{% admonition type="note" %}}

{{< admonition type="note" >}}
Add `-arm64` to the image tag for AMR64 hosts.
{{% /admonition %}}
{{< /admonition >}}

To check installed plugins, use the `docker plugin ls` command.
To check installed plugins, use the `docker plugin ls` command.
Plugins that have started successfully are listed as enabled:

```bash
$ docker plugin ls
docker plugin ls
```

You should see output similar to the following:

```bash
ID NAME DESCRIPTION ENABLED
ac720b8fcfdb loki Loki Logging Driver true
```

Once you have successfully installed the plugin you can [configure]({{< relref "./configuration" >}}) it.
Once you have successfully installed the plugin you can [configure](https://grafana.com/docs/loki/<LOKI_VERSION/configure/) it.

## Upgrade the Docker driver client

Expand All @@ -61,6 +61,7 @@ docker plugin upgrade loki grafana/loki-docker-driver:2.9.2 --grant-all-permissi
docker plugin enable loki
systemctl restart docker
```

{{< admonition type="note" >}}
Update the version number to the appropriate version.
{{< /admonition >}}
Expand All @@ -80,4 +81,4 @@ The driver keeps all logs in memory and will drop log entries if Loki is not rea

The wait time can be lowered by setting `loki-retries=2`, `loki-max-backoff=800ms`, `loki-timeout=1s` and `keep-file=true`. This way the daemon will be locked only for a short time and the logs will be persisted locally when the Loki client is unable to re-connect.

To avoid this issue, use the Promtail [Docker target]({{< relref "../../send-data/promtail/configuration#docker" >}}) or [Docker service discovery]({{< relref "../../send-data/promtail/configuration#docker_sd_configs" >}}).
To avoid this issue, use the Promtail [Docker target](https://grafana.com/docs/loki/<LOKI_VERSION>/send-data/promtail/configuration/#docker) or [Docker service discovery](https://grafana.com/docs/loki/<LOKI_VERSION>/send-data/promtail/configuration/#docker_sd_configs).
Loading