{"id":14,"date":"2025-11-27T00:54:06","date_gmt":"2025-11-26T16:54:06","guid":{"rendered":"https:\/\/xs.xiaosuo.top\/?p=14"},"modified":"2025-11-27T13:30:27","modified_gmt":"2025-11-27T05:30:27","slug":"docker%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"https:\/\/xs.xiaosuo.top\/index.php\/2025\/11\/27\/docker%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85\/","title":{"rendered":"Docker\u4e00\u952e\u5b89\u88c5"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Sun-Panel+Helper\u5582\u996d\u7ea7&lt;\u6559\u7a0b><\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1\ufe0f\u20e3.\u5b89\u88c5Docker<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5df2\u7ecf\u5b89\u88c5\u4e86\u5c31\u53ef\u4ee5\u8df3\u8fc7<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u76f4\u63a5\u4f7f\u7528\u4e00\u952e\u5b89\u88c5\u811a\u672c\uff08\u5b98\u65b9\u811a\u672c\uff09<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -fsSL https:\/\/get.docker.com -o get-docker.sh &amp;&amp; sh get-docker.sh\n\n#\u590d\u5236\u5185\u5bb9\u6765\u81ea\u5c0f\u93bb\u535a\u5ba2<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/xs.xiaosuo.top\/wp-content\/uploads\/2025\/11\/QQ20251126-224114.png'><img class=\"lazyload lazyload-style-none\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"715\" height=\"56\" data-original=\"https:\/\/xs.xiaosuo.top\/wp-content\/uploads\/2025\/11\/QQ20251126-224114.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-15\"  sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b49\u5230\u811a\u672c\u8fd0\u884c\u5b8c\u6210\uff0c\u77e5\u9053\u51fa\u73b0\u8fd9\u4e2a\u754c\u9762<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/xs.xiaosuo.top\/wp-content\/uploads\/2025\/11\/QQ20251126-224313.png'><img class=\"lazyload lazyload-style-none\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"645\" height=\"733\" data-original=\"https:\/\/xs.xiaosuo.top\/wp-content\/uploads\/2025\/11\/QQ20251126-224313.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-16\"  sizes=\"auto, (max-width: 645px) 100vw, 645px\" \/><\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1.1.\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9\u9a8c\u8bc1\u662f\u5426\u5b89\u88c5\u6210\u529f<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>docker --version\ndocker compose version\n\n#\u9a8c\u8bc1\u662f\u5426\u5b89\u88c5\u6210\u529f<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/xs.xiaosuo.top\/wp-content\/uploads\/2025\/11\/QQ20251126-224358.png'><img class=\"lazyload lazyload-style-none\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"457\" height=\"78\" data-original=\"https:\/\/xs.xiaosuo.top\/wp-content\/uploads\/2025\/11\/QQ20251126-224358.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-17\"  sizes=\"auto, (max-width: 457px) 100vw, 457px\" \/><\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u51fa\u73b0\u8fd9\u4e2a\u754c\u9762\u8868\u793a\u5b89\u88c5\u6210\u529f<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2\ufe0f\u20e3\u4e00\u4e9b\u5176\u4ed6\u811a\u672c<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u2160.<strong>Docker \u4e00\u952e\u5b89\u88c5\u811a\u672c\uff08\u5176\u4ed6\uff09<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">1.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bash &lt;(curl -sSL https:\/\/linuxmirrors.cn\/docker.sh)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">2.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bash &lt;(curl -sSL https:\/\/gitee.com\/SuperManito\/LinuxMirrors\/raw\/main\/DockerInstallation.sh)\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">3.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bash &lt;(curl -sSL https:\/\/raw.githubusercontent.com\/SuperManito\/LinuxMirrors\/main\/DockerInstallation.sh)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u811a\u672c\u6ce8\u89e3\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u811a\u672c\u96c6\u6210\u5b89\u88c5\u00a0<code>Docker Engine<\/code>\uff0c\u53ef\u9009\u62e9\u5b89\u88c5\u7248\u672c\u3001\u4e0b\u8f7d\u8f6f\u4ef6\u6e90\u3001\u955c\u50cf\u52a0\u901f\u5668\uff0c\u652f\u6301\u6d77\u5185\u5916\u670d\u52a1\u5668\u73af\u5883\u548c\u00a0<code>arm<\/code>\u00a0\u67b6\u6784\u5904\u7406\u5668\u73af\u5883\u4f7f\u7528<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Docker CE<\/code>&nbsp;\u8f6f\u4ef6\u4ed3\u5e93\uff0c\u5168\u79f0 Docker Community Edition (Docker \u793e\u533a\u7248)\uff0c\u7528\u4e8e\u4e0b\u8f7d\u5e76\u5b89\u88c5 Docker \u76f8\u5173\u8f6f\u4ef6\u5305<br><code>Docker Registry<\/code>&nbsp;\u955c\u50cf\u4ed3\u5e93\uff0c\u7528\u4e8e\u63a7\u5236\u4e0b\u8f7d\u955c\u50cf\u7684\u6765\u6e90\u5b58\u50a8\u4ed3\u5e93\uff0c\u53c8\u79f0\u955c\u50cf\u52a0\u901f\u5668\uff0c\u9ed8\u8ba4\u4e3a\u5b98\u65b9\u63d0\u4f9b Docker Hub \u4ed3\u5e93<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2161.<strong>Docker \u4e00\u952e\u5b89\u88c5\u811a\u672c\uff08\u5176\u4ed6\uff09<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">1.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bash &lt;(curl -sSL https:\/\/cdn.jsdelivr.net\/gh\/SuperManito\/LinuxMirrors@main\/DockerInstallation.sh)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u811a\u672c\u6ce8\u89e3\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u811a\u672c\u96c6\u6210\u5b89\u88c5&nbsp;<a href=\"https:\/\/docs.docker.com\/engine\" target=\"_blank\" rel=\"noreferrer noopener\"><code>Docker Engine<\/code><\/a>\uff0c\u53ef\u9009\u62e9\u5b89\u88c5\u7248\u672c\u3001\u4e0b\u8f7d\u8f6f\u4ef6\u6e90\u3001\u955c\u50cf\u52a0\u901f\u5668\uff0c\u652f\u6301\u6d77\u5185\u5916\u670d\u52a1\u5668\u73af\u5883\u548c&nbsp;<code>arm<\/code>&nbsp;\u67b6\u6784\u5904\u7406\u5668\u73af\u5883\u4f7f\u7528<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Docker CE<\/code>&nbsp;\u8f6f\u4ef6\u4ed3\u5e93\uff0c\u5168\u79f0 Docker Community Edition (Docker \u793e\u533a\u7248)\uff0c\u7528\u4e8e\u4e0b\u8f7d\u5e76\u5b89\u88c5 Docker \u76f8\u5173\u8f6f\u4ef6\u5305<br><code>Docker Registry<\/code>&nbsp;\u955c\u50cf\u4ed3\u5e93\uff0c\u7528\u4e8e\u63a7\u5236\u4e0b\u8f7d\u955c\u50cf\u7684\u6765\u6e90\u5b58\u50a8\u4ed3\u5e93\uff0c\u53c8\u79f0\u955c\u50cf\u52a0\u901f\u5668\uff0c\u9ed8\u8ba4\u4e3a\u5b98\u65b9\u63d0\u4f9b Docker Hub \u4ed3\u5e93<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3\ufe0f\u20e3<strong>.Docker \u5378\u8f7d\u65b9\u6cd5<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u2160.CentOS \u5378\u8f7d Docker<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f60\u53ef\u4ee5\u4e00\u4e2a\u4e00\u4e2a\u7684\u590d\u5236\uff0c\u4e5f\u53ef\u4ee5\u4e00\u8d77\u590d\u5236<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo yum remove docker \\\ndocker-client \\\ndocker-client-latest \\\ndocker-common \\\ndocker-latest \\\ndocker-latest-logrotate \\\ndocker-logrotate \\\ndocker-selinux \\\ndocker-engine-selinux \\\ndocker-engine\n\n#\u590d\u5236\u5185\u5bb9\u6765\u81ea\u5c0f\u93bb\u535a\u5ba2<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u2161.Debian \/ Ubuntu \u5378\u8f7d Docker<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get remove docker docker-engine docker.io containerd runc\n\n#\u590d\u5236\u5185\u5bb9\u6765\u81ea\u5c0f\u93bb\u535a\u5ba2<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u2162.\u5176\u4ed6\u65b9\u5f0f\u5378\u8f7d Docker<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get purge docker-ce docker-ce-cli containerd.io\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u2163.\u6e05\u9664\u7f13\u5b58\u7684\u6587\u4ef6<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo rm -rf \/var\/lib\/docker  \nsudo rm -rf \/var\/lib\/containerd\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u63a5\u7740<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-get remove -y docker* containerd.io podman* runc &amp;&amp; apt-get autoremove\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b64\u6587\u7ae0\u6709\u591a\u4f4d\u5927\u4f6c\u7684\u6587\u7ae0\u603b\u7ed3\u800c\u6210\uff0c\u5982\u6709\u4fb5\u6743\u8bf7\u76f4\u63a5\u8054\u7cfb\u535a\u4e3b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sun-Panel+Helper\u5582\u996d\u7ea7&lt;\u6559\u7a0b> 1\ufe0f\u20e3.\u5b89\u88c5Docker \u5df2\u7ecf\u5b89\u88c5\u4e86\u5c31\u53ef\u4ee5\u8df3\u8fc7 \u76f4\u63a5\u4f7f\u7528 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":19,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5],"tags":[6],"class_list":["post-14","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker","tag-docker"],"_links":{"self":[{"href":"https:\/\/xs.xiaosuo.top\/index.php\/wp-json\/wp\/v2\/posts\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xs.xiaosuo.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xs.xiaosuo.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xs.xiaosuo.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xs.xiaosuo.top\/index.php\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":1,"href":"https:\/\/xs.xiaosuo.top\/index.php\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":18,"href":"https:\/\/xs.xiaosuo.top\/index.php\/wp-json\/wp\/v2\/posts\/14\/revisions\/18"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xs.xiaosuo.top\/index.php\/wp-json\/wp\/v2\/media\/19"}],"wp:attachment":[{"href":"https:\/\/xs.xiaosuo.top\/index.php\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xs.xiaosuo.top\/index.php\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xs.xiaosuo.top\/index.php\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}