id: 14d8f2875a5246759b0f9e0d8f19a47e
parent_id: 
item_type: 1
item_id: a5b81c3f70264f0e80d701436601dece
item_updated_time: 1764345467733
title_diff: "[{\"diffs\":[[1,\"Ubuntu Docker 安装  菜鸟教程\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":22}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>Ubuntu Docker 安装 | 菜鸟教程</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"1593\\\"></a>\\\r\\\n<h1>Ubuntu Docker 安装 | 菜鸟教程</h1>\\\r\\\n\\\r\\\n<div><span>\\\n  <div style=\\\"--en-clipped-content:article\\\">\\\n<div><br/></div><div style=\\\"font-size: 16px; display:block; min-width: 100%; position: relative;\\\"> <div style=\\\"font-size:62.5%;\\\"><div style=\\\"font-size:1.2em;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;-webkit-font-smoothing:antialiased;background:url(https://www.runoob.com/wp-content/themes/runoob/./assets/img/bg.gif) no-repeat rgb(246, 246, 246);color:rgb(51, 51, 51);\\\"><div><div style=\\\"min-width:755px;overflow:hidden;\\\"><div style=\\\"box-sizing:border-box;\\\"><div style=\\\"background:rgb(255, 255, 255);border-image:initial;\\\"><div><div>\\\n\\t\\t\\t\\\n\\t\\t\\t<h1 style=\\\"border:0px;padding:0px;margin:0px 0px 10px;font-size:2.1em;color:rgb(0, 0, 0);text-decoration:none;text-indent:initial;\\\">Ubuntu Docker 安装</h1>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">Docker Engine-Community 支持以下的 Ubuntu 版本：</p>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">\\\n</p><ul style=\\\"border:0px;line-height:140%;list-style-type:none;margin:0px;padding:0px;margin-top:1em;margin-bottom:1em;\\\">\\\n<li style=\\\"border:0px;line-height:1.5em;font-size:14px;word-break:break-all;background-image:url(https://www.runoob.com/wp-content/themes/runoob/./assets/img/bullet.png);background-repeat:no-repeat;background-position:left 0.5em;margin:0px 0px 1em 1em;padding:0px 0px 0px 1.5em;\\\">Xenial 16.04 (LTS)</li><li style=\\\"border:0px;line-height:1.5em;font-size:14px;word-break:break-all;background-image:url(https://www.runoob.com/wp-content/themes/runoob/./assets/img/bullet.png);background-repeat:no-repeat;background-position:left 0.5em;margin:0px 0px 1em 1em;padding:0px 0px 0px 1.5em;\\\">\\\nBionic 18.04 (LTS)</li><li style=\\\"border:0px;line-height:1.5em;font-size:14px;word-break:break-all;background-image:url(https://www.runoob.com/wp-content/themes/runoob/./assets/img/bullet.png);background-repeat:no-repeat;background-position:left 0.5em;margin:0px 0px 1em 1em;padding:0px 0px 0px 1.5em;\\\">\\\nCosmic 18.10</li><li style=\\\"border:0px;line-height:1.5em;font-size:14px;word-break:break-all;background-image:url(https://www.runoob.com/wp-content/themes/runoob/./assets/img/bullet.png);background-repeat:no-repeat;background-position:left 0.5em;margin:0px 0px 1em 1em;padding:0px 0px 0px 1.5em;\\\">\\\nDisco 19.04</li>\\\n\\\n\\\n<li style=\\\"border:0px;line-height:1.5em;font-size:14px;word-break:break-all;background-image:url(https://www.runoob.com/wp-content/themes/runoob/./assets/img/bullet.png);background-repeat:no-repeat;background-position:left 0.5em;margin:0px 0px 1em 1em;padding:0px 0px 0px 1.5em;\\\">其他更新的版本……</li>\\\n</ul>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">Docker Engine - Community 支持上 x86_64（或 amd64）armhf，arm64，s390x （IBM Z），和 ppc64le（IBM的Power）架构。</p>\\\n<hr style=\\\"background-color:rgb(212, 212, 212);color:rgb(212, 212, 212);height:1px;border:0px;clear:both;\\\"/>\\\n<h2 style=\\\"border:0px;padding:0px;line-height:1.8em;margin:2px 0px;font-size:1.8em;\\\">使用官方安装脚本自动安装</h2>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">安装命令如下：</p><pre style=\\\"font:13px / 20px Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;border-image:initial;margin:15px auto;padding:10px 15px;hyphens:none;position:relative;font-family:Menlo, &quot;Bitstream Vera Sans Mono&quot;, &quot;DejaVu Sans Mono&quot;, Monaco, Consolas, monospace;background:rgb(236, 244, 238);overflow:hidden;word-break:break-word;overflow-wrap:normal;white-space:pre-wrap;border:0px;\\\"><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\"> curl </span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">fsSL https</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">:</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(120, 135, 125);\\\">//test.docker.com -o test-docker.sh</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">\\\n sudo sh test</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">docker</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">.</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">sh</span></pre>\\\n<hr style=\\\"background-color:rgb(212, 212, 212);color:rgb(212, 212, 212);height:1px;border:0px;clear:both;\\\"/>\\\n<h2 style=\\\"border:0px;padding:0px;line-height:1.8em;margin:2px 0px;font-size:1.8em;\\\">手动安装</h2>\\\n<h3 style=\\\"border:0px;padding:0px;font-weight:700;margin:8px 0px;font-size:1.4em;\\\">卸载旧版本</h3>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">Docker 的旧版本被称为 docker，docker.io 或 docker-engine 。如果已安装，请卸载它们：</p>\\\n<pre style=\\\"font:13px / 20px Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;border-image:initial;margin:15px auto;padding:10px 15px;hyphens:none;position:relative;font-family:Menlo, &quot;Bitstream Vera Sans Mono&quot;, &quot;DejaVu Sans Mono&quot;, Monaco, Consolas, monospace;background:rgb(236, 244, 238);overflow:hidden;word-break:break-word;overflow-wrap:normal;white-space:pre-wrap;border:0px;\\\"><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">$ sudo apt</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(85, 133, 155);\\\">get</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\"> remove docker docker</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">engine docker</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">.</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">io containerd runc</span></pre>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">当前称为 Docker Engine-Community 软件包 docker-ce 。</p>\\\n\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">安装 Docker Engine-Community，以下介绍两种方式。</p>\\\n\\\n<h3 style=\\\"border:0px;padding:0px;font-weight:700;margin:8px 0px;font-size:1.4em;\\\">使用 Docker 仓库进行安装</h3>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">在新主机上首次安装 Docker Engine-Community 之前，需要设置 Docker 仓库。之后，您可以从仓库安装和更新 Docker 。</p>\\\n\\\n\\\n<h3 style=\\\"border:0px;padding:0px;font-weight:700;margin:8px 0px;font-size:1.4em;\\\">设置仓库</h3>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">更新 apt 包索引。</p>\\\n<pre style=\\\"font:13px / 20px Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;border-image:initial;margin:15px auto;padding:10px 15px;hyphens:none;position:relative;font-family:Menlo, &quot;Bitstream Vera Sans Mono&quot;, &quot;DejaVu Sans Mono&quot;, Monaco, Consolas, monospace;background:rgb(236, 244, 238);overflow:hidden;word-break:break-word;overflow-wrap:normal;white-space:pre-wrap;border:0px;\\\"><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">$ sudo apt</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(85, 133, 155);\\\">get</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\"> update</span></pre>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">安装 apt 依赖包，用于通过HTTPS来获取仓库:</p>\\\n<div style=\\\"width:98%;color:rgb(0, 0, 0);background-color:rgb(229, 238, 204);background-image:linear-gradient(rgb(255, 255, 255), rgb(229, 238, 204) 100px);border:1px solid rgb(212, 212, 212);margin:5px 0px;padding:5px;\\\"> <div style=\\\"margin:0px;position:relative;line-height:1.4em;width:98%;background-color:rgb(249, 249, 249);font-size:110%;font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;word-break:break-all;overflow-wrap:break-word;border:1px solid rgb(212, 212, 212);padding:5px;\\\">\\\n$ <span style=\\\"border:0px;margin:0px;padding:0px;color:#c20cb9;font-weight:bold;\\\">sudo</span> <span style=\\\"border:0px;margin:0px;padding:0px;color:#c20cb9;font-weight:bold;\\\">apt-get install</span> \\\\<br/>\\\n    apt-transport-https \\\\<br/>\\\n    ca-certificates \\\\<br/>\\\n    curl \\\\<br/>\\\n    gnupg-agent \\\\<br/>\\\n    software-properties-common<br/>\\\n</div></div>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">添加 Docker 的官方 GPG 密钥：</p>\\\n<pre style=\\\"font:13px / 20px Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;border-image:initial;margin:15px auto;padding:10px 15px;hyphens:none;position:relative;font-family:Menlo, &quot;Bitstream Vera Sans Mono&quot;, &quot;DejaVu Sans Mono&quot;, Monaco, Consolas, monospace;background:rgb(236, 244, 238);overflow:hidden;word-break:break-word;overflow-wrap:normal;white-space:pre-wrap;border:0px;\\\"><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">$ curl </span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">fsSL https</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">:</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(120, 135, 125);\\\">//mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add -</span></pre>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88 通过搜索指纹的后8个字符，验证您现在是否拥有带有指纹的密钥。</p>\\\n<div style=\\\"width:98%;color:rgb(0, 0, 0);background-color:rgb(229, 238, 204);background-image:linear-gradient(rgb(255, 255, 255), rgb(229, 238, 204) 100px);border:1px solid rgb(212, 212, 212);margin:5px 0px;padding:5px;\\\"> <div style=\\\"margin:0px;position:relative;line-height:1.4em;width:98%;background-color:rgb(249, 249, 249);font-size:110%;font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;word-break:break-all;overflow-wrap:break-word;border:1px solid rgb(212, 212, 212);padding:5px;\\\">\\\n$ <span style=\\\"border:0px;margin:0px;padding:0px;color:#c20cb9;font-weight:bold;\\\">sudo</span> <span style=\\\"border:0px;margin:0px;padding:0px;color:#c20cb9;font-weight:bold;\\\">apt-key</span> fingerprint 0EBFCD88<br/>\\\n    <br/>\\\npub   rsa4096 <span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;\\\">2017</span>-02-<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;\\\">22</span> <span style=\\\"border:0px;margin:0px;padding:0px;color:#7a0874;font-weight:bold;\\\">[</span>SCEA<span style=\\\"border:0px;margin:0px;padding:0px;color:#7a0874;font-weight:bold;\\\">]</span><br/>\\\n      9DC8 <span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;\\\">5822</span> 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88<br/>\\\nuid           <span style=\\\"border:0px;margin:0px;padding:0px;color:#7a0874;font-weight:bold;\\\">[</span> unknown<span style=\\\"border:0px;margin:0px;padding:0px;color:#7a0874;font-weight:bold;\\\">]</span> Docker Release <span style=\\\"border:0px;margin:0px;padding:0px;color:#7a0874;font-weight:bold;\\\">(</span>CE deb<span style=\\\"border:0px;margin:0px;padding:0px;color:#7a0874;font-weight:bold;\\\">)</span> <span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">&lt;</span>docker<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">@</span>docker.com<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">&gt;</span><br/>\\\nsub   rsa4096 <span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;\\\">2017</span>-02-<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;\\\">22</span> <span style=\\\"border:0px;margin:0px;padding:0px;color:#7a0874;font-weight:bold;\\\">[</span>S<span style=\\\"border:0px;margin:0px;padding:0px;color:#7a0874;font-weight:bold;\\\">]</span><br/>\\\n</div></div>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">使用以下指令设置稳定版仓库</p>\\\n<div style=\\\"width:98%;color:rgb(0, 0, 0);background-color:rgb(229, 238, 204);background-image:linear-gradient(rgb(255, 255, 255), rgb(229, 238, 204) 100px);border:1px solid rgb(212, 212, 212);margin:5px 0px;padding:5px;\\\"> <div style=\\\"margin:0px;position:relative;line-height:1.4em;width:98%;background-color:rgb(249, 249, 249);font-size:110%;font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;word-break:break-all;overflow-wrap:break-word;border:1px solid rgb(212, 212, 212);padding:5px;\\\">\\\n$ <span style=\\\"border:0px;margin:0px;padding:0px;color:#c20cb9;font-weight:bold;\\\">sudo</span> add-apt-repository \\\\<br/>\\\n   <span style=\\\"border:0px;margin:0px;padding:0px;color:#a10;\\\">&quot;deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/ <span style=\\\"border:0px;margin:0px;padding:0px;color:#000099;font-weight:bold;\\\">\\\\<br/>\\\n</span>   <span style=\\\"border:0px;margin:0px;padding:0px;color:#007800;\\\">$(lsb_release -cs)</span> <span style=\\\"border:0px;margin:0px;padding:0px;color:#000099;font-weight:bold;\\\">\\\\<br/>\\\n</span>   stable&quot;</span><br/>\\\n</div></div>\\\n\\\n<h3 style=\\\"border:0px;padding:0px;font-weight:700;margin:8px 0px;font-size:1.4em;\\\">安装 Docker Engine-Community</h3>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">更新 apt 包索引。</p>\\\n<pre style=\\\"font:13px / 20px Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;border-image:initial;margin:15px auto;padding:10px 15px;hyphens:none;position:relative;font-family:Menlo, &quot;Bitstream Vera Sans Mono&quot;, &quot;DejaVu Sans Mono&quot;, Monaco, Consolas, monospace;background:rgb(236, 244, 238);overflow:hidden;word-break:break-word;overflow-wrap:normal;white-space:pre-wrap;border:0px;\\\"><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">$ sudo apt</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(85, 133, 155);\\\">get</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\"> update</span></pre>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">安装最新版本的 Docker Engine-Community 和 containerd ，或者转到下一步安装特定版本：</p>\\\n<pre style=\\\"font:13px / 20px Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;border-image:initial;margin:15px auto;padding:10px 15px;hyphens:none;position:relative;font-family:Menlo, &quot;Bitstream Vera Sans Mono&quot;, &quot;DejaVu Sans Mono&quot;, Monaco, Consolas, monospace;background:rgb(236, 244, 238);overflow:hidden;word-break:break-word;overflow-wrap:normal;white-space:pre-wrap;border:0px;\\\"><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">$ sudo apt</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(85, 133, 155);\\\">get</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\"> install docker</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">ce docker</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">ce</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">cli containerd</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">.</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">io</span></pre>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">要安装特定版本的 Docker Engine-Community，请在仓库中列出可用版本，然后选择一种安装。列出您的仓库中可用的版本：</p>\\\n<div style=\\\"width:98%;color:rgb(0, 0, 0);background-color:rgb(229, 238, 204);background-image:linear-gradient(rgb(255, 255, 255), rgb(229, 238, 204) 100px);border:1px solid rgb(212, 212, 212);margin:5px 0px;padding:5px;\\\"> <div style=\\\"margin:0px;position:relative;line-height:1.4em;width:98%;background-color:rgb(249, 249, 249);font-size:110%;font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;word-break:break-all;overflow-wrap:break-word;border:1px solid rgb(212, 212, 212);padding:5px;\\\">\\\n$ <span style=\\\"border:0px;margin:0px;padding:0px;color:#c20cb9;font-weight:bold;\\\">apt-cache</span> madison docker-ce<br/>\\\n<br/>\\\n  docker-ce <span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">|</span> <span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;\\\">5</span>:18.09.1~<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;\\\">3</span>-<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;\\\">0</span>~ubuntu-xenial <span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">|</span> https:<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">//</span>mirrors.ustc.edu.cn<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">/</span>docker-ce<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">/</span>linux<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">/</span>ubuntu  xenial<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">/</span>stable amd64 Packages<br/>\\\n  docker-ce <span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">|</span> <span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;\\\">5</span>:18.09.0~<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;\\\">3</span>-<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;\\\">0</span>~ubuntu-xenial <span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">|</span> https:<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">//</span>mirrors.ustc.edu.cn<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">/</span>docker-ce<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">/</span>linux<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">/</span>ubuntu  xenial<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">/</span>stable amd64 Packages<br/>\\\n  docker-ce <span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">|</span> 18.06.1~ce~<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;\\\">3</span>-<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;\\\">0</span>~ubuntu       <span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">|</span> https:<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">//</span>mirrors.ustc.edu.cn<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">/</span>docker-ce<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">/</span>linux<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">/</span>ubuntu  xenial<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">/</span>stable amd64 Packages<br/>\\\n  docker-ce <span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">|</span> 18.06.0~ce~<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;\\\">3</span>-<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;\\\">0</span>~ubuntu       <span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">|</span> https:<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">//</span>mirrors.ustc.edu.cn<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">/</span>docker-ce<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">/</span>linux<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">/</span>ubuntu  xenial<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">/</span>stable amd64 Packages<br/>\\\n  ...<br/>\\\n</div></div>\\\n\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">使用第二列中的版本字符串安装特定版本，例如 5:18.09.1~3-0~ubuntu-xenial。</p>\\\n<pre style=\\\"font:13px / 20px Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;border-image:initial;margin:15px auto;padding:10px 15px;hyphens:none;position:relative;font-family:Menlo, &quot;Bitstream Vera Sans Mono&quot;, &quot;DejaVu Sans Mono&quot;, Monaco, Consolas, monospace;background:rgb(236, 244, 238);overflow:hidden;word-break:break-word;overflow-wrap:normal;white-space:pre-wrap;border:0px;\\\"><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">$ sudo apt</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(85, 133, 155);\\\">get</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\"> install docker</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">ce</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">=&lt;</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">VERSION_STRING</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">&gt;</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\"> docker</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">ce</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">cli</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">=&lt;</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">VERSION_STRING</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">&gt;</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\"> containerd</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">.</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">io</span></pre>\\\n\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">测试 Docker 是否安装成功，输入以下指令，打印出以下信息则安装成功:</p>\\\n<div style=\\\"width:98%;color:rgb(0, 0, 0);background-color:rgb(229, 238, 204);background-image:linear-gradient(rgb(255, 255, 255), rgb(229, 238, 204) 100px);border:1px solid rgb(212, 212, 212);margin:5px 0px;padding:5px;\\\"> <div style=\\\"margin:0px;position:relative;line-height:1.4em;width:98%;background-color:rgb(249, 249, 249);font-size:110%;font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;word-break:break-all;overflow-wrap:break-word;border:1px solid rgb(212, 212, 212);padding:5px;\\\">\\\n$ <span style=\\\"border:0px;margin:0px;padding:0px;color:#c20cb9;font-weight:bold;\\\">sudo</span> docker run hello-world<br/>\\\n<br/>\\\nUnable to <span style=\\\"border:0px;margin:0px;padding:0px;color:#c20cb9;font-weight:bold;\\\">find</span> image <span style=\\\"border:0px;margin:0px;padding:0px;color:#a10;\\\">'hello-world:latest'</span> locally<br/>\\\nlatest: Pulling from library<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">/</span>hello-world<br/>\\\n1b930d010525: Pull <span style=\\\"border:0px;margin:0px;padding:0px;color:#7a0874;font-weight:bold;\\\">complete</span>                                                                                                                                  Digest: sha256:c3b4ada4687bbaa170745b3e4dd8ac3f194ca95b2d0518b417fb47e5879d9b5f<br/>\\\nStatus: Downloaded newer image <span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">for</span> hello-world:latest<br/>\\\n<br/>\\\n<br/>\\\nHello from Docker<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">!</span><br/>\\\nThis message shows that your installation appears to be working correctly.<br/>\\\n<br/>\\\n<br/>\\\nTo generate this message, Docker took the following steps:<br/>\\\n <span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;\\\">1</span>. The Docker client contacted the Docker daemon.<br/>\\\n <span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;\\\">2</span>. The Docker daemon pulled the <span style=\\\"border:0px;margin:0px;padding:0px;color:#a10;\\\">&quot;hello-world&quot;</span> image from the Docker Hub.<br/>\\\n    <span style=\\\"border:0px;margin:0px;padding:0px;color:#7a0874;font-weight:bold;\\\">(</span>amd64<span style=\\\"border:0px;margin:0px;padding:0px;color:#7a0874;font-weight:bold;\\\">)</span><br/>\\\n <span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;\\\">3</span>. The Docker daemon created a new container from that image <span style=\\\"border:0px;margin:0px;padding:0px;color:#c20cb9;font-weight:bold;\\\">which</span> runs the<br/>\\\n    executable that produces the output you are currently reading.<br/>\\\n <span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;\\\">4</span>. The Docker daemon streamed that output to the Docker client, <span style=\\\"border:0px;margin:0px;padding:0px;color:#c20cb9;font-weight:bold;\\\">which</span> sent it<br/>\\\n    to your terminal.<br/>\\\n<br/>\\\n<br/>\\\nTo try something <span style=\\\"border:0px;margin:0px;padding:0px;color:#c20cb9;font-weight:bold;\\\">more</span> ambitious, you can run an Ubuntu container with:<br/>\\\n $ docker run <span style=\\\"border:0px;margin:0px;padding:0px;color:#660033;\\\">-it</span> ubuntu <span style=\\\"border:0px;margin:0px;padding:0px;color:#c20cb9;font-weight:bold;\\\">bash</span><br/>\\\n<br/>\\\n<br/>\\\nShare images, automate workflows, and <span style=\\\"border:0px;margin:0px;padding:0px;color:#c20cb9;font-weight:bold;\\\">more</span> with a <span style=\\\"border:0px;margin:0px;padding:0px;color:#c20cb9;font-weight:bold;\\\">free</span> Docker ID:<br/>\\\n https:<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">//</span>hub.docker.com<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">/</span><br/>\\\n<br/>\\\n<br/>\\\nFor <span style=\\\"border:0px;margin:0px;padding:0px;color:#c20cb9;font-weight:bold;\\\">more</span> examples and ideas, visit:<br/>\\\n https:<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">//</span>docs.docker.com<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">/</span>get-started<span style=\\\"border:0px;margin:0px;padding:0px;color:#000000;font-weight:bold;\\\">/</span><br/>\\\n</div></div>\\\n\\\n<hr style=\\\"background-color:rgb(212, 212, 212);color:rgb(212, 212, 212);height:1px;border:0px;clear:both;\\\"/>\\\n<h2 style=\\\"border:0px;padding:0px;line-height:1.8em;margin:2px 0px;font-size:1.8em;\\\">\\\n使用 Shell 脚本进行安装</h2>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">Docker 在 <a href=\\\"https://get.docker.com/\\\" rel=\\\"noopener noreferrer\\\" style=\\\"border:0px;margin:0px;padding:0px;transition-duration:0.2s;transition-property:opacity;outline:none;font-size:14px;color:rgb(0, 102, 0);text-decoration:underline;\\\" target=\\\"_blank\\\">get.docker.com </a>和 <a href=\\\"https://test.docker.com/\\\" rel=\\\"noopener noreferrer\\\" style=\\\"border:0px;margin:0px;padding:0px;transition-duration:0.2s;transition-property:opacity;outline:none;font-size:14px;color:rgb(0, 102, 0);text-decoration:underline;\\\" target=\\\"_blank\\\">test.docker.com</a> 上提供了方便脚本，用于将快速安装 Docker Engine-Community 的边缘版本和测试版本。脚本的源代码在 docker-install 仓库中。 不建议在生产环境中使用这些脚本，在使用它们之前，您应该了解潜在的风险：</p>\\\n<ul style=\\\"border:0px;line-height:140%;list-style-type:none;margin:0px;padding:0px;margin-top:1em;margin-bottom:1em;\\\"><li style=\\\"border:0px;line-height:1.5em;font-size:14px;word-break:break-all;background-image:url(https://www.runoob.com/wp-content/themes/runoob/./assets/img/bullet.png);background-repeat:no-repeat;background-position:left 0.5em;margin:0px 0px 1em 1em;padding:0px 0px 0px 1.5em;\\\">\\\n<p style=\\\"border:0px;margin:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;padding:0px 10px;\\\">脚本需要运行 root 或具有 sudo 特权。因此，在运行脚本之前，应仔细检查和审核脚本。</p></li><li style=\\\"border:0px;line-height:1.5em;font-size:14px;word-break:break-all;background-image:url(https://www.runoob.com/wp-content/themes/runoob/./assets/img/bullet.png);background-repeat:no-repeat;background-position:left 0.5em;margin:0px 0px 1em 1em;padding:0px 0px 0px 1.5em;\\\">\\\n<p style=\\\"border:0px;margin:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;padding:0px 10px;\\\">这些脚本尝试检测 Linux 发行版和版本，并为您配置软件包管理系统。此外，脚本不允许您自定义任何安装参数。从 Docker 的角度或您自己组织的准则和标准的角度来看，这可能导致不支持的配置。</p></li><li style=\\\"border:0px;line-height:1.5em;font-size:14px;word-break:break-all;background-image:url(https://www.runoob.com/wp-content/themes/runoob/./assets/img/bullet.png);background-repeat:no-repeat;background-position:left 0.5em;margin:0px 0px 1em 1em;padding:0px 0px 0px 1.5em;\\\">\\\n<p style=\\\"border:0px;margin:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;padding:0px 10px;\\\">这些脚本将安装软件包管理器的所有依赖项和建议，而无需进行确认。这可能会安装大量软件包，具体取决于主机的当前配置。</p></li><li style=\\\"border:0px;line-height:1.5em;font-size:14px;word-break:break-all;background-image:url(https://www.runoob.com/wp-content/themes/runoob/./assets/img/bullet.png);background-repeat:no-repeat;background-position:left 0.5em;margin:0px 0px 1em 1em;padding:0px 0px 0px 1.5em;\\\">\\\n<p style=\\\"border:0px;margin:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;padding:0px 10px;\\\">该脚本未提供用于指定要安装哪个版本的 Docker 的选项，而是安装了在 edge 通道中发布的最新版本。</p></li><li style=\\\"border:0px;line-height:1.5em;font-size:14px;word-break:break-all;background-image:url(https://www.runoob.com/wp-content/themes/runoob/./assets/img/bullet.png);background-repeat:no-repeat;background-position:left 0.5em;margin:0px 0px 1em 1em;padding:0px 0px 0px 1.5em;\\\">\\\n<p style=\\\"border:0px;margin:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;padding:0px 10px;\\\">如果已使用其他机制将 Docker 安装在主机上，请不要使用便捷脚本。</p></li></ul>\\\n\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">本示例使用 <a href=\\\"https://get.docker.com/\\\" rel=\\\"noopener noreferrer\\\" style=\\\"border:0px;margin:0px;padding:0px;transition-duration:0.2s;transition-property:opacity;outline:none;font-size:14px;color:rgb(0, 102, 0);text-decoration:underline;\\\" target=\\\"_blank\\\">get.docker.com </a> 上的脚本在 Linux 上安装最新版本的Docker Engine-Community。要安装最新的测试版本，请改用 test.docker.com。在下面的每个命令，取代每次出现 get 用 test。</p>\\\n\\\n<pre style=\\\"font:13px / 20px Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;border-image:initial;margin:15px auto;padding:10px 15px;hyphens:none;position:relative;font-family:Menlo, &quot;Bitstream Vera Sans Mono&quot;, &quot;DejaVu Sans Mono&quot;, Monaco, Consolas, monospace;background:rgb(236, 244, 238);overflow:hidden;word-break:break-word;overflow-wrap:normal;white-space:pre-wrap;border:0px;\\\"><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">$ curl </span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">fsSL https</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">:</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(120, 135, 125);\\\">//get.docker.com -o get-docker.sh</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">\\\n$ sudo sh </span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(85, 133, 155);\\\">get</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">docker</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">.</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">sh</span></pre>\\\n\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">如果要使用 Docker 作为非 root 用户，则应考虑使用类似以下方式将用户添加到 docker 组：</p>\\\n<pre style=\\\"font:13px / 20px Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;border-image:initial;margin:15px auto;padding:10px 15px;hyphens:none;position:relative;font-family:Menlo, &quot;Bitstream Vera Sans Mono&quot;, &quot;DejaVu Sans Mono&quot;, Monaco, Consolas, monospace;background:rgb(236, 244, 238);overflow:hidden;word-break:break-word;overflow-wrap:normal;white-space:pre-wrap;border:0px;\\\"><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">$ sudo usermod </span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">aG docker your</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">user</span></pre>\\\n<h3 style=\\\"border:0px;padding:0px;font-weight:700;margin:8px 0px;font-size:1.4em;\\\">卸载 docker</h3>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">删除安装包：</p>\\\n<pre style=\\\"font:13px / 20px Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;border-image:initial;margin:15px auto;padding:10px 15px;hyphens:none;position:relative;font-family:Menlo, &quot;Bitstream Vera Sans Mono&quot;, &quot;DejaVu Sans Mono&quot;, Monaco, Consolas, monospace;background:rgb(236, 244, 238);overflow:hidden;word-break:break-word;overflow-wrap:normal;white-space:pre-wrap;border:0px;\\\"><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">sudo apt</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(85, 133, 155);\\\">get</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\"> purge docker</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">ce</span></pre>\\\n\\\n<p style=\\\"border:0px;margin:0px;padding:0px;overflow-wrap:break-word;word-break:break-all;font-size:14px;font-family:&quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, Arial, sans-serif;line-height:2em;\\\">删除镜像、容器、配置文件等内容：</p>\\\n<pre style=\\\"font:13px / 20px Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;border-image:initial;margin:15px auto;padding:10px 15px;hyphens:none;position:relative;font-family:Menlo, &quot;Bitstream Vera Sans Mono&quot;, &quot;DejaVu Sans Mono&quot;, Monaco, Consolas, monospace;background:rgb(236, 244, 238);overflow:hidden;word-break:break-word;overflow-wrap:normal;white-space:pre-wrap;border:0px;\\\"><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">sudo rm </span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">-</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">rf </span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">/</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(85, 133, 155);\\\">var</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">/</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">lib</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">/</span><span style=\\\"border:0px;margin:0px;padding:0px;color:rgb(23, 28, 25);\\\">docker</span></pre>\\t\\t\\t\\\n\\t\\t\\t\\t\\t\\t\\\n\\t\\t\\t</div></div></div></div></div></div></div></div></div>\\\n</div>\\\n</span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":43706}]"
metadata_diff: {"new":{"id":"a5b81c3f70264f0e80d701436601dece","parent_id":"061de1401cfc4cfaadf6e74e015970e9","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764345766506,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T16:13:00.285Z
created_time: 2025-11-28T16:13:00.285Z
type_: 13