Check Docker Swarm labels of a specific Docker Swarm node:
docker node inspect --format '{{ .Spec.Labels }}' node-general-2
In this example we want to see the labels of the node named node-general-2.
Check Docker Swarm labels of a specific Docker Swarm node:
docker node inspect --format '{{ .Spec.Labels }}' node-general-2
In this example we want to see the labels of the node named node-general-2.