{"id":9339,"date":"2021-06-28T19:32:48","date_gmt":"2021-06-28T11:32:48","guid":{"rendered":"https:\/\/jpuyy.com\/?p=9339"},"modified":"2021-06-28T19:33:30","modified_gmt":"2021-06-28T11:33:30","slug":"docker-swarm","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=9339","title":{"rendered":"docker swarm"},"content":{"rendered":"<pre>\r\nUsage:\tdocker service COMMAND\r\n\r\nManage services\r\n\r\nCommands:\r\n  create      Create a new service\r\n  inspect     Display detailed information on one or more services\r\n  logs        Fetch the logs of a service or task\r\n  ls          List services\r\n  ps          List the tasks of one or more services\r\n  rm          Remove one or more services\r\n  rollback    Revert changes to a service's configuration\r\n  scale       Scale one or multiple replicated services\r\n  update      Update a service\r\n\r\nRun 'docker service COMMAND --help' for more information on a command.\r\n<\/pre>\n<pre>\r\ndocker service ls\r\n<\/pre>\n<pre>\r\ndocker service logs infra_service1\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Usage: docker service COMMAND Manage services Commands: create Create a new service inspect Display detailed information on one or more services logs Fetch the logs of a service or task ls List services ps List the tasks of one or more services rm Remove one or more services rollback Revert changes to a service&#8217;s configuration [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[178],"tags":[],"class_list":["post-9339","post","type-post","status-publish","format-standard","hentry","category-docker"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/9339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9339"}],"version-history":[{"count":2,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/9339\/revisions"}],"predecessor-version":[{"id":9341,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/9339\/revisions\/9341"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}