Home > other >  Docker swarm service manual start and stop
Docker swarm service manual start and stop

Time:09-24

Is doing a docer swarm of management tools, start and stop on the service, hope to be able to manual control, do not use the service restart strategy, my approach is to create the service when the Condition at the specified RestartPolicy "none", control, list all the tasks, the service first cycle stop API call container, so you can stop the service, however, when I stop and start the container can be started, the state of the corresponding task list or shutdown!!!!!!
Which have good method?
  • Related