I am experimenting with
docker stack as a replacement to
docker-compose. But I had the following message on my first deploy attempt:
sudo docker stack deploy --compose-file stack/app-stack.yml app-stack this node is not a swarm manager. Use "docker swarm init" or "docker swarm join" to connect this node to swarm and try again
Once issued the
docker swarm init command,
docker stack deploy works as expected.
Why it is mandatory to switch to swarm mode to run
docker stack? And most important, what are the implications of switching to swarm mode when working on a single node?