docker node label add

JavaScript
$ docker node update --label-add foo worker1

Source

Also in JavaScript: