From 5cb32668c7c9eeb19abb39b8c0e2a294daf69b99 Mon Sep 17 00:00:00 2001 From: Philipp Gassmann Date: Tue, 29 Sep 2020 09:21:36 +0200 Subject: [PATCH] docker plugin documentation update (#2689) * docker plugin documentation update add --force to plugin disable link installation and configuration of the plugin * grant all permissions on upgrade * change wording --- docs/sources/clients/docker-driver/_index.md | 8 ++++---- docs/sources/clients/docker-driver/configuration.md | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/sources/clients/docker-driver/_index.md b/docs/sources/clients/docker-driver/_index.md index b483fce804..9eeeb125f0 100644 --- a/docs/sources/clients/docker-driver/_index.md +++ b/docs/sources/clients/docker-driver/_index.md @@ -35,7 +35,7 @@ ID NAME DESCRIPTION ENABLED ac720b8fcfdb loki Loki Logging Driver true ``` -Once the plugin is installed it can be [configured](../../configuration/). +Once the plugin is installed it can be [configured](./configuration). ## Upgrading @@ -43,8 +43,8 @@ The upgrade process involves disabling the existing plugin, upgrading, then re-enabling and restarting Docker: ```bash -docker plugin disable loki -docker plugin upgrade loki grafana/loki-docker-driver:latest +docker plugin disable loki --force +docker plugin upgrade loki grafana/loki-docker-driver:latest --grant-all-permissions docker plugin enable loki systemctl restart docker ``` @@ -54,6 +54,6 @@ systemctl restart docker To cleanly uninstall the plugin, disable and remove it: ```bash -docker plugin disable loki +docker plugin disable loki --force docker plugin rm loki ``` diff --git a/docs/sources/clients/docker-driver/configuration.md b/docs/sources/clients/docker-driver/configuration.md index 74cfd5d598..76f175441a 100644 --- a/docs/sources/clients/docker-driver/configuration.md +++ b/docs/sources/clients/docker-driver/configuration.md @@ -6,6 +6,10 @@ title: Configuration The Docker daemon on each machine has a default logging driver and each container will use the default driver unless configured otherwise. +## Installation + +Before configuring the plugin, [install or upgrade the Loki Docker Driver Client](../../docker-driver/) + ## Change the logging driver for a container The `docker run` command can be configured to use a different logging driver