From beebba5b08eb49f28896044bdb05ff362ff8e7ca Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 22 Jun 2021 00:48:17 +0200 Subject: [PATCH] installation: document Docker --- content/installation.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/content/installation.html b/content/installation.html index 144c4ec3..8e8a1451 100644 --- a/content/installation.html +++ b/content/installation.html @@ -74,6 +74,28 @@ available directly with the following command: It is also possible to [build _lldpd_ from source][]. +## Docker + +You can use Docker to run `lldpd`: + + docker run --rm --net=host --uts=host \ + -v /etc/os-release:/etc/os-release \ + --cap-add=NET_RAW --cap-add=NET_ADMIN \ + --name lldpd \ + ghcr.io/lldpd/lldpd:latest + +In place of `latest` which provides you with the latest stable +version, you may use `1`, `1.0`, `{{ resource.meta.latestversion }}` +to match specific versions. + +To execute `lldpcli`, use: + + docker exec lldpd lldpcli show neighbors + +Or to get the command-line: + + docker exec -it lldpd lldpcli + # BSD `lldpd` is currently available in the ports tree of most BSDs[^ports]. -- 2.39.5