Open marcosnils opened 8 years ago
I think engine labels were set by docker-machine only? Swarm doesn't set labels on the engine, these must be set as daemon options.
Node labels in docker engine swarm are different than engine labels. Node labels can only be set once the swarm is initialized and only from manager nodes.
@cpuguy83 thx for the quick response. Previous swarm included some useful default tags: https://docs.docker.com/swarm/scheduler/filter/#/use-a-constraint-filter
I might be confused but I believe the first releases of swarm mode also provided some default labels as engine labels that you can use as constraints to create your services. If this is not the case, I still believe this is super useful as many users end up tagging the engines with the OS / Arch (at least) which seems redundant as the engine is already aware of all that.
Description
IIRC Previous swarm and swarm mode RC's provided some default engine labels like Operating System / Arch / ExecutionDriver / StorageDriver / etc. Seems like that is not present anymore, swarm mode doesn't get any engine labels when initializing or joining a swarm
Steps to reproduce the issue:
docker swarm init
swarmctl node inspect <node_id>
Describe the results you received:
I don't see any engine label at all
Describe the results you expected:
Default labels to be there as before
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker info
: