{"id":52400,"date":"2024-12-03T11:39:43","date_gmt":"2024-12-03T03:39:43","guid":{"rendered":"https:\/\/fwq.ai\/blog\/52400\/"},"modified":"2024-12-03T11:39:43","modified_gmt":"2024-12-03T03:39:43","slug":"ubuntu-24-04-lts-%e6%80%8e%e4%b9%88%e5%ae%89%e8%a3%85%e5%92%8c%e5%8d%b8%e8%bd%bddocker-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/52400\/","title":{"rendered":"Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?<\/h1>\n<p>\u5b66\u4e60<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u6587\u7ae0<\/span>\u8981\u52aa\u529b\uff0c\u4f46\u662f\u4e0d\u8981\u6025\uff01\u4eca\u5929\u7684\u8fd9\u7bc7\u6587\u7ae0<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300aUbuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u300b<\/span>\u5c06\u4f1a\u4ecb\u7ecd\u5230<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\u77e5\u8bc6\u70b9\uff0c\u5982\u679c\u4f60\u60f3\u6df1\u5165\u5b66\u4e60<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u6587\u7ae0<\/span>\uff0c\u53ef\u4ee5\u5173\u6ce8\u6211\uff01\u6211\u4f1a\u6301\u7eed\u66f4\u65b0\u76f8\u5173\u6587\u7ae0\u7684\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u90fd\u80fd\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n<p>Ubuntu \u662f\u4e00\u6b3e\u7a33\u5b9a\u800c\u51fa\u8272\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u518d\u642d\u914d Docker \u8fd9\u4e00\u5f3a\u5927\u7684\u5bb9\u5668\u5316\u5de5\u5177\uff0c\u80fd\u591f\u6781\u5927\u5730\u7b80\u5316\u5e94\u7528\u7a0b\u5e8f\u7684\u521b\u5efa\u3001\u90e8\u7f72\u548c\u7ba1\u7406\u8fc7\u7a0b\u3002\u63a5\u4e0b\u6765\uff0c\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728 Ubuntu 24.04 LTS \u4e0a\u5b89\u88c5 Docker\uff0c\u5e2e\u52a9\u4f60\u8f7b\u677e\u5f00\u542f\u5bb9\u5668\u5316\u4e4b\u65c5\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732100270673dc0ae4c4dd.jpg\" class=\"aligncenter\" title=\"Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u63d2\u56fe\" alt=\"Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u63d2\u56fe\" \/><\/p>\n<h3>\u5728 Ubuntu 24.04 LTS \u4e0a\u5b89\u88c5 Docker<\/h3>\n<p>\u5728 Ubuntu 24.04 LTS \u4e0a\uff0c\u867d\u7136\u53ef\u4ee5\u901a\u8fc7 Ubuntu \u7684\u5b98\u65b9\u4ed3\u5e93\u76f4\u63a5\u5b89\u88c5 Docker\uff0c\u4f46\u662f\u8fd9\u79cd\u65b9\u6cd5\u901a\u5e38\u65e0\u6cd5\u83b7\u53d6\u5230\u6700\u65b0\u7684 Docker \u7248\u672c\uff0c\u800c\u4e14\u5b89\u5168\u66f4\u65b0\u4e5f\u53ef\u80fd\u5ef6\u8fdf\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u63a8\u8350\u4ece Docker \u7684\u5b98\u65b9\u4ed3\u5e93\u8fdb\u884c\u5b89\u88c5\uff0c\u786e\u4fdd\u53ef\u4ee5\u7528\u4e0a\u6700\u65b0\u7248\u672c\u5e76\u548c\u81ea\u52a8\u66f4\u65b0\u3002<\/p>\n<p><strong>\u7b2c 1 \u6b65\uff1a\u66f4\u65b0\u8f6f\u4ef6\u5305\u5e76\u5b89\u88c5\u5fc5\u8981\u8f6f\u4ef6<\/strong><\/p>\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u66f4\u65b0\u8f6f\u4ef6\u5305\u7d22\u5f15\u5e76\u5b89\u88c5\u6dfb\u52a0 Docker \u4ed3\u5e93\u6240\u9700\u7684\u524d\u7f6e\u8f6f\u4ef6\u5305\uff1a<\/p>\n<pre>sudo apt update\nsudo apt install apt-transport-https curl<\/pre>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732100270673dc0ae4f3fc.jpg\" class=\"aligncenter\" title=\"Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u63d2\u56fe1\" alt=\"Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u63d2\u56fe1\" \/><\/p>\n<p style=\"text-align:center\">\u66f4\u65b0\u8f6f\u4ef6\u5305\u5e76\u5b89\u88c5\u5fc5\u8981\u8f6f\u4ef6<\/p>\n<p><strong>\u7b2c 2 \u6b65\uff1a\u5bfc\u5165 Docker \u5b98\u65b9 GPG \u5bc6\u94a5<\/strong><\/p>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4e0b\u8f7d\u5e76\u5bfc\u5165 Docker \u5b98\u65b9\u7684 GPG \u5bc6\u94a5\uff1a<\/p>\n<pre>curl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo gpg --dearmor -o \/etc\/apt\/keyrings\/docker.gpg<\/pre>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732100270673dc0ae518a5.jpg\" class=\"aligncenter\" title=\"Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u63d2\u56fe2\" alt=\"Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u63d2\u56fe2\" \/><\/p>\n<p style=\"text-align:center\">\u4f7f\u7528 curl \u547d\u4ee4\u4e0b\u8f7d\u5e76\u5bfc\u5165 Docker \u5b98\u65b9 GPG \u5bc6\u94a5<\/p>\n<p><strong>\u7b2c 3 \u6b65\uff1a\u6dfb\u52a0 Docker \u5b98\u65b9\u4ed3\u5e93<\/strong><\/p>\n<p>\u5c06 Docker \u7684\u5b98\u65b9\u4ed3\u5e93\u6dfb\u52a0\u5230 Ubuntu 24.04 LTS \u7684\u8f6f\u4ef6\u6e90\u5217\u8868\uff1a<\/p>\n<pre>echo \"deb [arch=$(dpkg --print-architecture) signed-by=\/etc\/apt\/keyrings\/docker.gpg] https:\/\/download.docker.com\/linux\/ubuntu $(. \/etc\/os-release &amp;&amp; echo \"$VERSION_CODENAME\") stable\" | sudo tee \/etc\/apt\/sources.list.d\/docker.list &gt; \/dev\/null<\/pre>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732100270673dc0ae56dba.jpg\" class=\"aligncenter\" title=\"Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u63d2\u56fe3\" alt=\"Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u63d2\u56fe3\" \/><\/p>\n<p style=\"text-align:center\">\u5c06 Docker \u5b98\u65b9\u4ed3\u5e93\u6dfb\u52a0\u5230 apt \u6e90\u5217\u8868<\/p>\n<p><strong>\u7b2c 4 \u6b65\uff1a\u66f4\u65b0\u8f6f\u4ef6\u5305\u5217\u8868<\/strong><\/p>\n<p>\u5237\u65b0\u8f6f\u4ef6\u5305\u5217\u8868\uff0c\u4ee5\u4fbf\u7cfb\u7edf\u8bc6\u522b\u65b0\u6dfb\u52a0\u7684 Docker \u4ed3\u5e93\uff1a<\/p>\n<pre>sudo apt update<\/pre>\n<p>\u7b2c 5 \u6b65\uff1a\u5b89\u88c5 Docker<\/p>\n<p>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5728 Ubuntu 24.04 LTS \u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684 Docker\uff0c\u5305\u62ec Docker \u5f15\u64ce\u53ca\u5176\u76f8\u5173\u7ec4\u4ef6\uff1a<\/p>\n<pre>sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin<\/pre>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732100270673dc0ae581bd.jpg\" class=\"aligncenter\" title=\"Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u63d2\u56fe4\" alt=\"Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u63d2\u56fe4\" \/><\/p>\n<p style=\"text-align:center\">\u5b89\u88c5 Docker Engine \u53ca\u5176\u76f8\u5173\u7ec4\u4ef6<\/p>\n<p>\u5b89\u88c5\u7684\u7ec4\u4ef6\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><strong>docker-ce<\/strong>\uff1aDocker Engine\u3002<\/li>\n<li><strong>docker-ce-cli<\/strong>\uff1a\u7528\u4e8e\u4e0e Docker \u5b88\u62a4\u8fdb\u7a0b\u901a\u4fe1\u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002<\/li>\n<li><strong>containerd.io<\/strong>\uff1a\u7ba1\u7406\u5bb9\u5668\u751f\u547d\u5468\u671f\u7684\u5bb9\u5668\u8fd0\u884c\u65f6\u73af\u5883\u3002<\/li>\n<li><strong>docker-buildx-plugin<\/strong>\uff1a\u589e\u5f3a\u955c\u50cf\u6784\u5efa\u529f\u80fd\u7684 Docker \u6269\u5c55\u5de5\u5177\uff0c\u7279\u522b\u662f\u5728\u591a\u5e73\u53f0\u6784\u5efa\u65b9\u9762\u3002<\/li>\n<li><strong>docker-compose-plugin<\/strong>\uff1a\u901a\u8fc7\u5355\u4e2a YAML \u6587\u4ef6\u7ba1\u7406\u591a\u5bb9\u5668 Docker \u5e94\u7528\u7684\u914d\u7f6e\u7ba1\u7406\u63d2\u4ef6\u3002<\/li>\n<\/ul>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5 Docker \u7684\u8fd0\u884c\u72b6\u6001\uff1a<\/p>\n<pre>sudo systemctl is-active docker<\/pre>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732100270673dc0ae5b0bd.jpg\" class=\"aligncenter\" title=\"Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u63d2\u56fe5\" alt=\"Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u63d2\u56fe5\" \/><\/p>\n<p style=\"text-align:center\">\u68c0\u67e5 Docker \u670d\u52a1\u72b6\u6001<\/p>\n<p>\u68c0\u67e5 Docker \u670d\u52a1\u7684\u72b6\u6001<\/p>\n<p><strong>\u7b2c 7 \u6b65\uff1a\u8fd0\u884c\u6d4b\u8bd5\u5bb9\u5668<\/strong><\/p>\n<p>\u8fd0\u884c hello-world \u6d4b\u8bd5\u5bb9\u5668\uff0c\u9a8c\u8bc1 Docker \u662f\u5426\u5b89\u88c5\u6210\u529f\u5e76\u6b63\u5e38\u5de5\u4f5c\uff1a<\/p>\n<pre>sudo docker run hello-world<\/pre>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732100270673dc0ae5c5cb.jpg\" class=\"aligncenter\" title=\"Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u63d2\u56fe6\" alt=\"Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u63d2\u56fe6\" \/><\/p>\n<p style=\"text-align:center\">\u8fd0\u884c hello-world \u6d4b\u8bd5\u5bb9\u5668<\/p>\n<p>\u66ff\u6362 DockerHub \u56fd\u5185\u955c\u50cf\u6e90<\/p>\n<p>\u5982\u679c\u62c9\u53d6 DockerHub \u955c\u50cf\u65f6\u9047\u5230\u56f0\u96be\uff0c\u53ef\u4ee5\u66ff\u6362\u4e3a\u56fd\u5185\u955c\u50cf\uff1a<\/p>\n<p>1\u3001<strong>\u6253\u5f00\u914d\u7f6e\u6587\u4ef6<\/strong>\uff1a\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\u6253\u5f00 Docker \u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u5982\u679c\u6ca1\u6709\u5c31\u65b0\u5efa\uff1a<\/p>\n<pre>sudo vim \/etc\/docker\/daemon.json<\/pre>\n<p>2\u3001<strong>\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6<\/strong>\uff1a\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u6216\u4fee\u6539registry-mirrors\uff0c\u6307\u5b9a\u56fd\u5185\u955c\u50cf\u6e90\u7684 URL\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u53ef\u7528\u7684\u56fd\u5185\u955c\u50cf\u6e90\u5730\u5740\uff0c\u4f60\u53ef\u4ee5\u6839\u636e\u9700\u8981\u9009\u62e9\u4f7f\u7528\uff1a<\/p>\n<ul>\n<li>DaoCloud\uff1a<code>https:\/\/docker.m.daocloud.io<\/code><\/li>\n<li>\u767e\u5ea6\u4e91\u955c\u50cf\u7ad9\uff1a<code>https:\/\/mirror.baidubce.com<\/code><\/li>\n<li>\u7f51\u6613\u4e91\u955c\u50cf\u7ad9:&nbsp;<code>http:\/\/hub-mirror.c.163.com<\/code><\/li>\n<li>\u5357\u4eac\u5927\u5b66\u955c\u50cf\u7ad9:&nbsp;<code>https:\/\/docker.nju.edu.cn<\/code><\/li>\n<\/ul>\n<p>\u914d\u7f6e\u6587\u4ef6\u7684\u5185\u5bb9\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre>{\n\"registry-mirrors\": [\n\"https:\/\/docker.m.daocloud.io\",\n\"https:\/\/mirror.baidubce.com\",\n\"http:\/\/hub-mirror.c.163.com\"\n]\n}<\/pre>\n<p>3\u3001<strong>\u91cd\u542f Docker \u670d\u52a1<\/strong>\uff1a\u4fdd\u5b58\u914d\u7f6e\u6587\u4ef6\u5e76\u91cd\u542f Docker \u670d\u52a1\u4ee5\u5e94\u7528\u66f4\u6539\u3002<\/p>\n<pre>sudo systemctl daemon-reload\nsudo systemctl restart docker<\/pre>\n<p>4\u3001<strong>\u9a8c\u8bc1\u914d\u7f6e<\/strong>\uff1a\u91cd\u542f Docker \u540e\uff0c\u4f7f\u7528docker info\u547d\u4ee4\u6765\u68c0\u67e5\u955c\u50cf\u6e90\u662f\u5426\u5df2\u7ecf\u66ff\u6362\u6210\u529f\uff1a<\/p>\n<pre>sudo docker info<\/pre>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732100270673dc0ae5fd5a.jpg\" class=\"aligncenter\" title=\"Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u63d2\u56fe7\" alt=\"Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u63d2\u56fe7\" \/><\/p>\n<p style=\"text-align:center\">\u4f7f\u7528 docker info \u547d\u4ee4\u68c0\u67e5\u955c\u50cf\u6e90<\/p>\n<h3>\u5141\u8bb8\u975e root \u7528\u6237\u8fd0\u884c Docker \u547d\u4ee4<\/h3>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u53ea\u6709 root \u7528\u6237\u6216\u5177\u6709 sudo \u6743\u9650\u7684\u7528\u6237\u624d\u80fd\u591f\u6267\u884c Docker \u547d\u4ee4\u3002\u5982\u679c\u4e0d\u52a0<code>sudo<\/code>\u524d\u7f00\u76f4\u63a5\u8fd0\u884c<code>docker<\/code>\u547d\u4ee4\uff0c\u7cfb\u7edf\u4f1a\u62a5\u6743\u9650\u9519\u8bef\u3002<\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5c06\u5f53\u524d\u767b\u5f55\u7684\u7528\u6237\u6dfb\u52a0\u5230 docker \u7ec4\uff0c\u4ee5\u4fbf\u4ee5\u975e root \u7528\u6237\u8eab\u4efd\u8fd0\u884c Docker \u547d\u4ee4\uff1a<\/p>\n<pre>sudo usermod -aG docker ${USER}<\/pre>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732100270673dc0ae632e0.jpg\" class=\"aligncenter\" title=\"Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u63d2\u56fe8\" alt=\"Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u63d2\u56fe8\" \/><\/p>\n<p style=\"text-align:center\">\u5c06\u5f53\u524d\u767b\u5f55\u7528\u6237\u6dfb\u52a0\u5230 docker \u7ec4<\/p>\n<p>\u5728\u8fd9\u6761\u547d\u4ee4\u4e2d\uff0c<code>${USER}<\/code>\u662f\u4e00\u4e2a\u73af\u5883\u53d8\u91cf\uff0c\u8868\u793a\u5f53\u524d\u767b\u5f55\u7684\u7528\u6237\u540d\u3002\u6267\u884c\u5b8c\u8fd9\u6761\u547d\u4ee4\u540e\uff0c\u9700\u8981\u91cd\u542f Ubuntu \u7cfb\u7edf\u3002\u91cd\u542f\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u4e0d\u9700\u8981\u52a0<code>sudo<\/code>\u524d\u7f00\u6765\u6267\u884c&nbsp;<code>docker<\/code>&nbsp;\u547d\u4ee4\u4e86\u3002<\/p>\n<h3>\u5378\u8f7d Docker<\/h3>\n<p>\u8981\u4ece Ubuntu 24.04 LTS \u4e2d\u5378\u8f7d Docker\uff0c\u90fd\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<p>1\u3001\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5378\u8f7d Docker \u53ca\u5176\u76f8\u5173\u7ec4\u4ef6\uff1a<\/p>\n<pre>sudo apt purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras<\/pre>\n<p>2\u3001\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u5220\u9664 Docker \u521b\u5efa\u7684\u76ee\u5f55\uff1a<\/p>\n<pre>sudo rm -rf \/var\/lib\/docker\nsudo rm -rf \/var\/lib\/containerd<\/pre>\n<p>\u5b8c\u6210\u8fd9\u4e9b\u6b65\u9aa4\u540e\uff0cDocker \u5c06\u5b8c\u5168\u4ece\u4f60\u7684 Ubuntu 24.04 \u7cfb\u7edf\u4e2d\u79fb\u9664\u3002<\/p>\n<p>\u597d\u4e86\uff0c\u672c\u6587\u5230\u6b64\u7ed3\u675f\uff0c\u5e26\u5927\u5bb6\u4e86\u89e3\u4e86\u300aUbuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u300b\uff0c\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff01\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\uff0c\u7ed9\u5927\u5bb6\u5206\u4eab\u66f4\u591a\u6587\u7ae0\u77e5\u8bc6\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker? \u5b66\u4e60\u6587\u7ae0\u8981\u52aa\u529b\uff0c\u4f46\u662f\u4e0d\u8981\u6025\uff01\u4eca\u5929\u7684\u8fd9\u7bc7\u6587\u7ae0\u300aUbuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u300b\u5c06\u4f1a\u4ecb\u7ecd\u5230\u7b49\u7b49\u77e5\u8bc6\u70b9\uff0c\u5982\u679c\u4f60\u60f3\u6df1\u5165\u5b66\u4e60\u6587\u7ae0\uff0c\u53ef\u4ee5\u5173\u6ce8\u6211\uff01\u6211\u4f1a\u6301\u7eed\u66f4\u65b0\u76f8\u5173\u6587\u7ae0\u7684\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u90fd\u80fd\u6709\u6240\u5e2e\u52a9\uff01 Ubuntu \u662f\u4e00\u6b3e\u7a33\u5b9a\u800c\u51fa\u8272\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u518d\u642d\u914d Docker \u8fd9\u4e00\u5f3a\u5927\u7684\u5bb9\u5668\u5316\u5de5\u5177\uff0c\u80fd\u591f\u6781\u5927\u5730\u7b80\u5316\u5e94\u7528\u7a0b\u5e8f\u7684\u521b\u5efa\u3001\u90e8\u7f72\u548c\u7ba1\u7406\u8fc7\u7a0b\u3002\u63a5\u4e0b\u6765\uff0c\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728 Ubuntu 24.04 LTS \u4e0a\u5b89\u88c5 Docker\uff0c\u5e2e\u52a9\u4f60\u8f7b\u677e\u5f00\u542f\u5bb9\u5668\u5316\u4e4b\u65c5\u3002 \u5728 Ubuntu 24.04 LTS \u4e0a\u5b89\u88c5 Docker \u5728 Ubuntu 24.04 LTS \u4e0a\uff0c\u867d\u7136\u53ef\u4ee5\u901a\u8fc7 Ubuntu \u7684\u5b98\u65b9\u4ed3\u5e93\u76f4\u63a5\u5b89\u88c5 Docker\uff0c\u4f46\u662f\u8fd9\u79cd\u65b9\u6cd5\u901a\u5e38\u65e0\u6cd5\u83b7\u53d6\u5230\u6700\u65b0\u7684 Docker \u7248\u672c\uff0c\u800c\u4e14\u5b89\u5168\u66f4\u65b0\u4e5f\u53ef\u80fd\u5ef6\u8fdf\u3002 \u56e0\u6b64\uff0c\u63a8\u8350\u4ece Docker \u7684\u5b98\u65b9\u4ed3\u5e93\u8fdb\u884c\u5b89\u88c5\uff0c\u786e\u4fdd\u53ef\u4ee5\u7528\u4e0a\u6700\u65b0\u7248\u672c\u5e76\u548c\u81ea\u52a8\u66f4\u65b0\u3002 \u7b2c 1 \u6b65\uff1a\u66f4\u65b0\u8f6f\u4ef6\u5305\u5e76\u5b89\u88c5\u5fc5\u8981\u8f6f\u4ef6 \u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u66f4\u65b0\u8f6f\u4ef6\u5305\u7d22\u5f15\u5e76\u5b89\u88c5\u6dfb\u52a0 Docker \u4ed3\u5e93\u6240\u9700\u7684\u524d\u7f6e\u8f6f\u4ef6\u5305\uff1a sudo apt update sudo apt install apt-transport-https curl \u66f4\u65b0\u8f6f\u4ef6\u5305\u5e76\u5b89\u88c5\u5fc5\u8981\u8f6f\u4ef6 \u7b2c 2 \u6b65\uff1a\u5bfc\u5165 Docker [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-52400","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52400","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=52400"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52400\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=52400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=52400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=52400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}