Run N containers instances across cluster

Hi,
I have 4 swarm nodes. I want to run 4 instances of a container in one command, is this possible w/ swarm? I.E. something like

docker -H tcp://swarmgr:port run --instances 4 …

You can use docker-compose with swarm for this requirement. Docker Client doesn’t have an option to specify the number of containers you want to run. The scale feature of docker-compose will serve the purpose.

Regards

Docker Swarm is a clustering software for Docker using which a cluster (or pool) of Docker hosts may be represented as a single host interface to external clients.

What is required is a cluster of Docker containers for which Kubernetes should be used. Kubernetes is a Docker container cluster manager with provision to scale number of Docker containers.