Skip to content
Snippets Groups Projects
Commit 609feb33 authored by David Douard's avatar David Douard
Browse files

mirror/docker: fix the 'docker node inspect' cli example

parent a6c8f9b1
No related branches found
Tags cassandra-checks-20240308.1
1 merge request!401mirror/docker: fix the 'docker node inspect' cli example
Pipeline #6375 passed
......@@ -111,12 +111,12 @@ one (and only one) node of the cluster:
To check labels defined on a specific node, one can use the ``docker node
inspect`` command:
.. code-block:: shell
.. code-block:: console
docker node inspect \
-f '{{ .ID }} [{{ .Description.Hostname}}]:
{{ range $k, $v := .Spec.Labels }}{{ $k }}={{ $v }}
{{end}}' <node_name>
swh:~/swh-mirror$ docker node inspect \
-f '{{ .ID }} [{{ .Description.Hostname}}]: '\
'{{ range $k, $v := .Spec.Labels }}{{ $k }}={{ $v }} {{end}}' \
<node_name>
Labels that need to be defined are:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment