First ssh into the node you want to add lable to
docker-machine ssh aws-node
Depending on wheather the machine is using upstart or systemd you will need to modify a config file:
sudo vim /etc/systemd/system/docker.service
edit the line starting ExecStart to add label
ExecStart=/usr/bin/docker daemon -H .... --label provider=amazonec2 **--label your=newlabel** --cluster-store=consul://ip:8500 --cluster-advertise=eth0:0
MountFlags=slave
reload demon units
sudo systemctl daemon-reload
echo "DOCKER_OPTS=\$DOCKER_OPTS --label your=newlabel" | sudo tee -a /etc/default/docker
sudo service docker restart
Restart the containers
export DOCKER_HOST=unix:///var/run/docker.sock
sudo docker start $(sudo docker ps -aq)
check the containers are up
sudo docker ps
check the docker entgine info
sudo docker info