Docker stack deploy in windows

后端 未结 1 1805
滥情空心
滥情空心 2021-01-28 18:24

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

相关标签:
1条回答
  • 2021-01-28 19:22

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

    0 讨论(0)
提交回复
热议问题