docker swarm list all swarms code example Example: docker node label add $ docker node update --label-add foo worker1