i have some questions in docker stack windows.
Can we enable docker stack in windows 2016. Is it fully supported.
if yes, how can we enable. how we can automate creating swarm cluster using this file. i have searched google but can't find related to windows. please provide me If you have any links to study.
Docker stack is somehow the equivalent for docker-compose but in swarm. A stack is a composition of multiple services defined in a stack file. You deploy a stack on a docker swarm which results in the creation of multiple services in that swarm.
You need first to have a swarm created by running
docker swarm init
and then you deploy the stack to the swarm by runningdocker stack deploy --compose-file stack-file.yml <stack-name>
. Note that the same docker compose file you use, can be used to deploy the containers in swarm mode.