creating a node label docker swarm code example Example: docker node label add $ docker node update --label-add foo worker1