{"id":651,"date":"2024-04-19T08:34:23","date_gmt":"2024-04-19T00:34:23","guid":{"rendered":"https:\/\/www.jthxfzya.tk\/?p=651"},"modified":"2025-03-09T22:32:49","modified_gmt":"2025-03-09T14:32:49","slug":"%e7%be%a4%e6%99%96docker%e5%87%ba%e7%8e%b0%e6%97%a0%e6%b3%95%e6%89%a7%e8%a1%8c%e6%ad%a4%e6%93%8d%e4%bd%9c%ef%bc%8c%e5%8f%af%e8%83%bd%e6%98%af%e5%9b%a0%e4%b8%ba%e7%bd%91%e7%bb%9c%e4%b8%8d%e7%a8%b3","status":"publish","type":"post","link":"https:\/\/www.jthxfzya.tk\/?p=651","title":{"rendered":"\u7fa4\u6656Docker\u51fa\u73b0\u65e0\u6cd5\u6267\u884c\u6b64\u64cd\u4f5c\uff0c\u5bb9\u5668\u7684\u542f\u52a8\u3001\u505c\u6b62\u3001\u8fd0\u884c\u3001\u5bfc\u5165\u3001\u5bfc\u51fa\u3001\u5220\u9664\u3002"},"content":{"rendered":"\n<p>Docker\u5b89\u88c5\u51fa\u73b0\u6b64\u95ee\u9898\uff0c\u53ef\u80fd\u60a8\u7684\u5bb9\u5668\u914d\u7f6e\u6709\u8bef\uff0c\u53c8\u542f\u7528\u4e86\u201c\u81ea\u52a8\u91cd\u542f\u201d\u9009\u9879\uff0c\u5f53\u5bb9\u5668\u542f\u52a8\u5931\u8d25\u65f6\uff0c\u4f1a\u8fdb\u5165\u91cd\u542f\u5faa\u574f\uff0c\u65e0\u6cd5\u5f3a\u884c\u505c\u6b62\u6216\u6267\u884c\u4efb\u4f55\u64cd\u4f5c\u3002\u6b64\u65f6\u4fee\u6539\u5bb9\u5668\u4f1a\u51fa\u73b0\u65e0\u6cd5\u4fdd\u5b58\u3001\u5220\u9664\u7684\u95ee\u9898\uff0c\u5e76\u63d0\u793a\u65e0\u6cd5\u6267\u884c\u6b64\u64cd\u4f5c\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u7f51\u7edc\u4e0d\u7a33\u5b9a\u6216\u7cfb\u7edf\u6b63\u5fd9\u3002\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002<\/p>\n\n\n\n<p>\u53ef\u4ee5\u901a\u8fc7 docker stop \u547d\u4ee4\u6765\u505c\u6b62\u51fa\u73b0\u5f02\u5e38\u7684\u5bb9\u5668\u5e76\u4eceContainer Manager\u4e2d\u5173\u95ed\u81ea\u52a8\u91cd\u542f\u9009\u9879\u6765\u7f13\u89e3\u3002<\/p>\n\n\n\n<p>ssh\u4ee5root\u8d26\u53f7\u767b\u5f55\u7fa4\u6656\uff0c<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"docker ps -a # \u67e5\u770bDocker\u5bb9\u5668ID\" style=\"color:#f6f6f4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #BF9EEE\">docker<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">ps<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #F286C4\">-<\/span><span style=\"color: #BF9EEE\">a<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #7B7F8B\"># \u67e5\u770bDocker\u5bb9\u5668ID<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"docker stop &lt;\u5bb9\u5668ID&gt; # \u505c\u6b62\u5bb9\u5668\" style=\"color:#f6f6f4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #BF9EEE\">docker<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">stop<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #F286C4\">&lt;<\/span><span style=\"color: #BF9EEE\">\u5bb9\u5668ID<\/span><span style=\"color: #F286C4\">&gt;<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #7B7F8B\"># \u505c\u6b62\u5bb9\u5668<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"docker kill &lt;\u5bb9\u5668ID&gt; # \u505c\u6b62\u5bb9\u5668\" style=\"color:#f6f6f4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #BF9EEE\">docker<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">kill<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #F286C4\">&lt;<\/span><span style=\"color: #BF9EEE\">\u5bb9\u5668ID<\/span><span style=\"color: #F286C4\">&gt;<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #7B7F8B\"># \u505c\u6b62\u5bb9\u5668<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"docker rm -f &lt;\u5bb9\u5668ID&gt; # \u7ec8\u6b62\u5bb9\u5668\u5e76\u5220\u9664\" style=\"color:#f6f6f4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #BF9EEE\">docker<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">rm<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #F286C4\">-<\/span><span style=\"color: #BF9EEE\">f<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #F286C4\">&lt;<\/span><span style=\"color: #BF9EEE\">\u5bb9\u5668ID<\/span><span style=\"color: #F286C4\">&gt;<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #7B7F8B\"># \u7ec8\u6b62\u5bb9\u5668\u5e76\u5220\u9664<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u505c\u6b62\u5bb9\u5668\u5373\u53ef\u4fee\u6539\u5bb9\u5668\u914d\u7f6e<\/p>\n\n\n\n<p>\u8fd0\u884c\u5bb9\u5668\uff1a<strong>docker run -t -i&nbsp; imagename&nbsp;&nbsp;\/bin\/bash\u3001docker run&nbsp;&nbsp;imagename&nbsp;&nbsp;\/bin\/bash<\/strong><\/p>\n\n\n\n<p>\u53c2\u6570-t\u8ba9<a href=\"https:\/\/so.csdn.net\/so\/search?q=Docker&amp;spm=1001.2101.3001.7020\" target=\"_blank\" rel=\"noreferrer noopener\">Docker<\/a>\u5206\u914d\u4e00\u4e2a\u4f2a\u7ec8\u7aef\u5e76\u7ed1\u5b9a\u5728\u5bb9\u5668\u7684\u6807\u51c6\u8f93\u5165\u4e0a,-i\u8ba9\u5bb9\u5668\u7684\u6807\u51c6\u8f93\u5165\u4fdd\u6301\u6253\u5f00\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528docker run\u547d\u4ee4\u6765\u542f\u52a8\u5bb9\u5668,docker\u5728\u540e\u53f0\u8fd0\u884c\u7684\u6807\u51c6\u64cd\u4f5c\u5305\u62ec<br>1.\u68c0\u67e5\u672c\u5730\u662f\u5426\u5b58\u5728\u6307\u5b9a\u7684\u955c\u50cf,\u4e0d\u5b58\u5728\u5219\u4ece\u516c\u6709\u4ed3\u5e93\u4e0b\u8f7d<br>2.\u4f7f\u7528\u955c\u50cf\u521b\u5efa\u5e76\u542f\u52a8\u5bb9\u5668<br>3.\u5206\u914d\u4e00\u4e2a\u6587\u4ef6\u7cfb\u7edf,\u5e76\u5728\u53ea\u8bfb\u7684\u955c\u50cf\u5c42\u5916\u9762\u6302\u8f7d\u4e00\u5c42\u53ef\u8bfb\u53ef\u5199\u5c42<br>4.\u4ece\u5bbf\u4e3b\u4e3b\u673a\u914d\u7f6e\u7684\u7f51\u6865\u63a5\u53e3\u4e2d\u6865\u63a5\u4e00\u4e2a\u865a\u62df\u63a5\u53e3\u9053\u5bb9\u5668\u4e2d\u53bb<br>5.\u4ece\u5730\u5740\u6c60\u5206\u914d\u4e00\u4e2aip\u5730\u5740\u7ed9\u5bb9\u5668<br>6.\u6267\u884c\u7528\u6237\u6307\u5b9a\u7684\u5e94\u7528\u7a0b\u5e8f<br>7.\u6267\u884c\u5b8c\u6bd5\u4e4b\u540e\u5bb9\u5668\u88ab\u7ec8\u6b62<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"docker start\" style=\"color:#f6f6f4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #BF9EEE\">docker<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">start<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u76f4\u63a5\u5c06\u4e00\u4e2a\u5df2\u7ecf\u7ec8\u6b62\u7684\u5bb9\u5668\u542f\u52a8\u8fd0\u884c\u8d77\u6765<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"docker restart\" style=\"color:#f6f6f4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #BF9EEE\">docker<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">restart<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u547d\u4ee4\u6765\u91cd\u542f\u4e00\u4e2a\u5bb9\u5668<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"docker stop\" style=\"color:#f6f6f4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #BF9EEE\">docker<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">stop<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u6765\u7ec8\u6b62\u4e00\u4e2a\u8fd0\u884c\u4e2d\u7684\u5bb9\u5668\u3002\u4f7f\u7528<strong>docker ps -a<\/strong>\u6765\u770b\u7ec8\u6b62\u72b6\u6001\u7684\u5bb9\u5668\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u8fdb\u5165\u8fd0\u884c\u4e2d\u7684\u540e\u53f0\u7a0b\u5e8f\uff1a\u6709\u65f6\u5019\u6211\u4eec\u52a0\u4e86\u53c2\u6570-d,\u8fd9\u65f6\u5bb9\u5668\u81ea\u52a8\u8fdb\u5165\u540e\u53f0\u8fd0\u884c\u3002\u8fd9\u4e2a\u65f6\u5019\u6211\u4eec\u8981\u518d\u6b21\u8fdb\u5165\u5bb9\u5668\uff0cdocker attach\u662fDocker\u81ea\u5e26\u7684\u547d\u4ee4\uff0c<strong>docker attach imagename<\/strong>\uff0c\u82e5\u6709\u591a\u4e2a\u7528\u6237attach\u5230\u4e00\u4e2a\u5bb9\u5668,\u4e00\u4e2a\u7a97\u53e3\u547d\u4ee4\u963b\u585e,\u5176\u4ed6\u7a97\u53e3\u90fd\u65e0\u6cd5\u6267<br>\u884c\uff0cnsenter\u547d\u4ee4:\u5728util-linux\u53052.23\u7248\u672c\u540e\u90fd\u6709\u5305\u542b\u3002nsenter\u53ef\u4ee5\u8bbf\u95ee\u53e6\u4e00\u4e2a\u8fdb\u7a0b\u7684\u540d\u5b57\u7a7a\u95f4<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"docker ps\" style=\"color:#f6f6f4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #BF9EEE\">docker<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">ps<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u67e5\u770b\u6b63\u5728\u8fd0\u884c\u7684\u5bb9\u5668<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"docker ps -a\" style=\"color:#f6f6f4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #BF9EEE\">docker<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">ps<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #F286C4\">-<\/span><span style=\"color: #BF9EEE\">a<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u67e5\u770b\u6240\u6709\u5bb9\u5668<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Docker\u5b89\u88c5\u51fa\u73b0\u6b64\u95ee\u9898\uff0c\u53ef\u80fd\u60a8\u7684\u5bb9\u5668\u914d\u7f6e\u6709\u8bef\uff0c\u53c8\u542f\u7528\u4e86\u201c\u81ea\u52a8\u91cd\u542f\u201d\u9009\u9879\uff0c\u5f53\u5bb9\u5668\u542f\u52a8\u5931\u8d25\u65f6\uff0c\u4f1a\u8fdb\u5165\u91cd\u542f\u5faa\u574f\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":594,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-651","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-6"],"_links":{"self":[{"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=\/wp\/v2\/posts\/651","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=651"}],"version-history":[{"count":5,"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=\/wp\/v2\/posts\/651\/revisions"}],"predecessor-version":[{"id":1000,"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=\/wp\/v2\/posts\/651\/revisions\/1000"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=\/wp\/v2\/media\/594"}],"wp:attachment":[{"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=651"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}