{"id":39484,"date":"2024-11-26T12:00:38","date_gmt":"2024-11-26T04:00:38","guid":{"rendered":"https:\/\/fwq.ai\/blog\/39484\/"},"modified":"2024-11-26T12:00:38","modified_gmt":"2024-11-26T04:00:38","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","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/39484\/","title":{"rendered":"Ubuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?"},"content":{"rendered":"<p>\u5728\u73b0\u4ee3\u5316\u7684\u8f6f\u4ef6\u5f00\u53d1\u4e2d\uff0c\u5bb9\u5668\u5316\u5df2\u6210\u4e3a\u4e0d\u53ef\u6216\u7f3a\u7684\u5173\u952e\u6280\u672f\u3002ubuntu 24.04 lts \u4f5c\u4e3a\u4e00\u6b3e\u7a33\u5b9a\u53ef\u9760\u7684\uff0c\u4e0e  \u5bb9\u5668\u5316\u5de5\u5177\u5f3a\u5f3a\u8054\u624b\uff0c\u4e3a\u5e7f\u5927\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u6784\u5efa\u3001\u90e8\u7f72\u548c\u7ba1\u7406\u5e94\u7528\u7a0b\u5e8f\u7684\u7406\u60f3\u5e73\u53f0\u3002php\u5c0f\u7f16\u5c0f\u65b0\u7279\u5730\u4e3a\u60a8\u51c6\u5907\u4e86\u8fd9\u7bc7\u8be6\u7ec6\u6307\u5357\uff0c\u65e8\u5728\u5e2e\u52a9\u60a8\u8f7b\u677e\u5730\u5728 ubuntu 24.04 lts \u4e0a\u5b89\u88c5 docker\uff0c\u52a9\u529b\u60a8\u5f00\u542f\u987a\u7545\u9ad8\u6548\u7684\u5bb9\u5668\u5316\u4e4b\u65c5\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/172965039098287.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> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/172965039093654.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> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/172965039037556.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> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/172965039034988.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> \u767b\u5f55\u540e\u590d\u5236 <\/p>\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> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/172965039084456.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> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/172965039067277.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> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/172965039037942.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<\/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> \u767b\u5f55\u540e\u590d\u5236 <\/p>\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\uff1ahttps:\/\/docker.m.daocloud.io<\/li>\n<li> \u4e91\u955c\u50cf\u7ad9\uff1ahttps:\/\/mirror.baidubce.com<\/li>\n<li>\u7f51\u6613\u4e91\u955c\u50cf\u7ad9:&nbsp;http:\/\/hub-mirror.c.163.com<\/li>\n<li>\u5357\u4eac\u5927\u5b66\u955c\u50cf\u7ad9:&nbsp;https:\/\/docker.nju.edu.cn<\/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> \u767b\u5f55\u540e\u590d\u5236 <\/p>\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> \u767b\u5f55\u540e\u590d\u5236 <\/p>\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> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/172965039032845.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\u52a0sudo\u524d\u7f00\u76f4\u63a5\u8fd0\u884cdocker\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> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/172965039131638.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${USER}\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\u52a0sudo\u524d\u7f00\u6765\u6267\u884c&nbsp;docker&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> \u767b\u5f55\u540e\u590d\u5236 <\/p>\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> \u767b\u5f55\u540e\u590d\u5236 <\/p>\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>\u4ee5\u4e0a\u5c31\u662fUbuntu 24.04 LTS \u600e\u4e48\u5b89\u88c5\u548c\u5378\u8f7dDocker?\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u73b0\u4ee3\u5316\u7684\u8f6f\u4ef6\u5f00\u53d1\u4e2d\uff0c\u5bb9\u5668\u5316\u5df2\u6210\u4e3a\u4e0d\u53ef\u6216\u7f3a\u7684\u5173\u952e\u6280\u672f\u3002ubuntu 24.04 lts \u4f5c\u4e3a\u4e00\u6b3e\u7a33\u5b9a\u53ef\u9760\u7684\uff0c\u4e0e \u5bb9\u5668\u5316\u5de5\u5177\u5f3a\u5f3a\u8054\u624b\uff0c\u4e3a\u5e7f\u5927\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u6784\u5efa\u3001\u90e8\u7f72\u548c\u7ba1\u7406\u5e94\u7528\u7a0b\u5e8f\u7684\u7406\u60f3\u5e73\u53f0\u3002php\u5c0f\u7f16\u5c0f\u65b0\u7279\u5730\u4e3a\u60a8\u51c6\u5907\u4e86\u8fd9\u7bc7\u8be6\u7ec6\u6307\u5357\uff0c\u65e8\u5728\u5e2e\u52a9\u60a8\u8f7b\u677e\u5730\u5728 ubuntu 24.04 lts \u4e0a\u5b89\u88c5 docker\uff0c\u52a9\u529b\u60a8\u5f00\u542f\u987a\u7545\u9ad8\u6548\u7684\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 \u767b\u5f55\u540e\u590d\u5236 \u66f4\u65b0\u8f6f\u4ef6\u5305\u5e76\u5b89\u88c5\u5fc5\u8981\u8f6f\u4ef6 \u7b2c 2 \u6b65\uff1a\u5bfc\u5165 Docker \u5b98\u65b9 GPG \u5bc6\u94a5 \u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4e0b\u8f7d\u5e76\u5bfc\u5165 Docker \u5b98\u65b9\u7684 [&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-39484","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/39484","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=39484"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/39484\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=39484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=39484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=39484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}