Hi ,
I want to use Docker Run command to start a container on another docker host with label storage set to ssd, so I followed the steps in below link:-
http://docs.rancher.com/rancher/concepts/scheduling/
the command is like:-
docker run -l io.rancher.container.network=true -l “io.rancher.scheduler.affinity:host_label: storage=ssd” -itd mariadb bash
However, I found the container was still created on the docker host where I run the Docker Run Command, instead of the one with the storage label.
From the Rancher UI–>Add container, the scheduling affinity could work.
Is there anything wrong with my steps or understanding? Pls help.
Thanks a lot!