I am trying to run manager and worker on same machine but i getting error.
You can create a swarm of one manager node, but you cannot have a worker node without at least one manager node. By default, all managers are also workers. In a single manager node cluster, you can run commands like docker service create and the scheduler places all tasks on the local Engine.
How would this even make sense? Are you running docker in multiple vm’s and want to span a swarm cluser accross the vm’s?
A single host can be either a manager node OR a worker node…
this is working, thanks