Deploy services to a swarm (Engine)
Deploy services to a swarm
When you are running Docker Engine in swarm mode, you run docker service create
to deploy your application in the swarm. The swarm manager accepts the service description as the desired state for your application. The built-in swarm orchestrator and scheduler deploy your application to nodes in your swarm to achieve and maintain the desired state.
For an overview of how services work, refer to How services work.
This guide assumes you are working with the Docker Engine running in swarm mode. You must run all docker service
commands from a manager node.
If you haven’t already, read through Swarm mode key concepts and 登录查看完整内容