{"id":613,"date":"2023-10-13T17:52:30","date_gmt":"2023-10-13T09:52:30","guid":{"rendered":"http:\/\/madapapa.com\/wordpress\/?p=613"},"modified":"2023-10-16T18:19:19","modified_gmt":"2023-10-16T10:19:19","slug":"cha-kandocker-rong-qi-zhuang-tai","status":"publish","type":"post","link":"http:\/\/madapapa.com\/wordpress\/?p=613","title":{"rendered":"\u67e5\u770bdocker \u5bb9\u5668\u72b6\u6001"},"content":{"rendered":"<p>\u6709\u65f6\u5019\u9700\u8981\u67e5\u770b\u5bbf\u4e3b\u673a\u4e0a\u7684docker\u670d\u52a1\u72b6\u6001\uff0c\u4ee5\u53ca\u54ea\u4e9b\u5bb9\u5668\u5728\u8fd0\u884c\u6216\u60c5\u51b5\u5982\u4f55<\/p>\n<h3><a id=\"%E6%9F%A5%E7%9C%8Bdocker%E6%9C%8D%E5%8A%A1%E7%8A%B6%E6%80%81\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u67e5\u770bdocker\u670d\u52a1\u72b6\u6001<\/h3>\n<pre><code class=\"language-plain_text\">systemctl is-active docker\n\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/madapapa.com\/wordpress\/wp-content\/uploads\/2023\/10\/16971911447868.jpg\" alt=\"\" \/><\/p>\n<pre><code class=\"language-plain_text\">systemctl status docker\n\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/madapapa.com\/wordpress\/wp-content\/uploads\/2023\/10\/16971910465970.jpg\" alt=\"\" \/><\/p>\n<p>systemctl status [service name]\u547d\u4ee4\u4f1a\u6301\u7eed\u3001\u5b9e\u65f6\u663e\u793a\u76f8\u5173\u670d\u52a1\u7684\u72b6\u6001\u4fe1\u606f\uff0c\u5982\u679c\u8981\u9000\u51fasystemctl status\u72b6\u6001\u56de\u5230\u63d0\u793a\u7b26\uff0c\u53ef\u4ee5\uff1a<\/p>\n<pre><code class=\"language-plain_text\">Press Q: You can simply press the &quot;Q&quot; key on your keyboard to quit the &quot;systemctl status&quot; display. This will return you to the command line.\n\nPress Ctrl + C: You can also press &quot;Ctrl&quot; and &quot;C&quot; simultaneously to send an interrupt signal to the &quot;systemctl status&quot; command, which will exit it and return you to the command line.\n<\/code><\/pre>\n<h3><a id=\"%E6%9F%A5%E7%9C%8B%E8%BF%90%E8%A1%8C%E7%9A%84%E5%AE%B9%E5%99%A8%E7%8A%B6%E6%80%81\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u67e5\u770b\u8fd0\u884c\u7684\u5bb9\u5668\u72b6\u6001<\/h3>\n<pre><code class=\"language-plain_text\">docker ps\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/madapapa.com\/wordpress\/wp-content\/uploads\/2023\/10\/16971912052143.jpg\" alt=\"\" \/><\/p>\n<h3><a id=\"%E6%9F%A5%E7%9C%8B%E6%89%80%E6%9C%89%E5%AE%B9%E5%99%A8%E7%8A%B6%E6%80%81\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u67e5\u770b\u6240\u6709\u5bb9\u5668\u72b6\u6001<\/h3>\n<pre><code class=\"language-plain_text\">docker ps -a\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u65f6\u5019\u9700\u8981\u67e5\u770b\u5bbf\u4e3b\u673a\u4e0a\u7684docker\u670d\u52a1\u72b6\u6001\uff0c\u4ee5\u53ca\u54ea\u4e9b\u5bb9\u5668\u5728\u8fd0\u884c\u6216\u60c5\u51b5\u5982\u4f55 \u67e5\u770bdocker\u670d\u52a1\u72b6\u6001 systemctl is-active docker systemctl status docker systemctl status [service name]\u547d\u4ee4\u4f1a\u6301\u7eed\u3001\u5b9e\u65f6\u663e\u793a\u76f8\u5173\u670d\u52a1\u7684\u72b6\u6001\u4fe1\u606f\uff0c\u5982\u679c\u8981\u9000\u51fasystemctl status\u72b6\u6001\u56de\u5230\u63d0\u793a\u7b26\uff0c\u53ef\u4ee5\uff1a Press Q: You can simply press the &quot;Q&quot; key on your keyboard to quit the &quot;systemctl status&quot; display. This will return you to the command line. Press Ctrl + C: You can also press &quot;Ctrl&quot; and &quot;C&quot; simultaneously to send an interrupt &hellip; <a href=\"http:\/\/madapapa.com\/wordpress\/?p=613\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u67e5\u770bdocker \u5bb9\u5668\u72b6\u6001<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-613","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=613"}],"version-history":[{"count":2,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/613\/revisions"}],"predecessor-version":[{"id":615,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/613\/revisions\/615"}],"wp:attachment":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=613"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}