]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
installation: specify style for docker code snippets
authorVincent Bernat <vincent@bernat.ch>
Sat, 21 May 2022 21:22:07 +0000 (23:22 +0200)
committerVincent Bernat <vincent@bernat.ch>
Sat, 21 May 2022 21:22:07 +0000 (23:22 +0200)
content/installation.html

index f820f57dab52597ca60277b6d7576091bfd4b290..0d56bf36ecfb390c3bc599fcdabfb00183ec9cbf 100644 (file)
@@ -84,7 +84,8 @@ It is also possible to [build _lldpd_ from source][].
 
 You can use Docker to run `lldpd`:
 
-    docker run --rm --net=host --uts=host \
+    ::console
+    $ docker run --rm --net=host --uts=host \
                -v /etc/os-release:/etc/os-release \
                --cap-add=NET_RAW --cap-add=NET_ADMIN \
                --name lldpd \
@@ -96,11 +97,13 @@ to match specific versions.
 
 To execute `lldpcli`, use:
 
-    docker exec lldpd lldpcli show neighbors
+    ::console
+    $ docker exec lldpd lldpcli show neighbors
 
 Or to get the command-line:
 
-    docker exec -it lldpd lldpcli
+    ::console
+    $ docker exec -it lldpd lldpcli
 
 # BSD