Search code examples
dockerdocker-swarm

Can Docker Swarm be ran on a single machine?


Is it possible to have the simplest architecture of Docker Swarm where a single server is both the manager and the worker? That is, every application is being ran on the manager's instance.


Solution

  • You can use docker swarm with a single node, but I recommend you use the docker-compose.

    docker swarm init