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 automat
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 running docker stack deploy --compose-file stack-file.yml
. Note that the same docker compose file you use, can be used to deploy the containers in swarm mode.