Node labels provide a flexible method of node organization. You can also use node labels in service constraints. Apply constraints when you create a service to limit the nodes where the scheduler assigns tasks for the service.
You need to pass the --label-add flag once for each node label you want to add.
$ docker node update --label-add foo --label-add bar=baz node-1
node-1