﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿{"id":13358,"date":"2025-01-15T12:08:08","date_gmt":"2025-01-15T04:08:08","guid":{"rendered":"http:\/\/www.aiersheng.cc\/?p=13358"},"modified":"2025-01-15T12:08:08","modified_gmt":"2025-01-15T04:08:08","slug":"docker-%e5%9f%ba%e7%a1%80%e9%95%9c%e5%83%8f-alpine-buster-stretch-jessie-bullseye-%e7%89%88%e6%9c%ac%e7%9a%84%e5%8c%ba%e5%88%ab","status":"publish","type":"post","link":"https:\/\/www.aiersheng.cc\/?p=13358","title":{"rendered":"Docker \u57fa\u7840\u955c\u50cf alpine\/buster\/stretch\/jessie\/bullseye \u7248\u672c\u7684\u533a\u522b"},"content":{"rendered":"<p>\u5982\u679c\u60a8\u50cf\u6211\u4e00\u6837\uff0c\u7b2c\u4e00\u6b21\u521b\u5efaDockerfile\u5e76\u4eceDockerHub\u9875\u9762\u4e2d\u9009\u62e9\u955c\u50cf\u65f6\uff0c\u60a8\u4f1a\u5f7b\u5e95\u56f0\u60d1\u3002\u6709\u65f6\u5019\uff0c\u50cf\u8fd9\u6837\u7684\u9009\u62e9\u4f1a\u8ba9\u6211\u4eec\u7684\u884c\u52a8\u505c\u6ede\u4e0d\u524d\uff0c\u6240\u4ee5\u4e5f\u8bb8\u6211\u4eec\u53ea\u662f\u7528\u6807\u51c6\u7684\u955c\u50cf\uff0c\u907f\u514d\u6df1\u5165\u7814\u7a76\uff0c\u8fd9\u6837\u6211\u4eec\u5c31\u53ef\u4ee5\u7ee7\u7eed\u6211\u4eec\u7684\u9879\u76ee\u3002<\/p>\n<p>\u4f46\u6700\u597d\u4e86\u89e3Docker\u955c\u50cf\u7c7b\u578b\u4e4b\u95f4\u7684\u5dee\u5f02\uff0c\u4ee5\u4fbf\u4e3a\u5e94\u7528\u7a0b\u5e8f\u6216\u811a\u672c\u9009\u62e9\u6b63\u786e\u7684Docker\u955c\u50cf\u3002\u8981\u77e5\u9053\u8fd9\u4e2a\u51b3\u5b9a\u4e0d\u662f\u6c38\u4e45\u7684\u3002\u60a8\u53ef\u4ee5\u968f\u65f6\u66f4\u6539Dockerfile\u4e2d\u7684\u955c\u50cf\uff0c\u5e76\u91cd\u5efa\u955c\u50cf\u3002\u8bf7\u786e\u4fdd\u5728\u90e8\u7f72\u5230\u751f\u4ea7\u73af\u5883\u4e4b\u524d\u8fdb\u884c\u5f7b\u5e95\u7684\u6d4b\u8bd5\u3002<\/p>\n<p><strong>\u7b80\u800c\u8a00\u4e4b\uff0cdocker\u955c\u50cf\u4e4b\u95f4\u7684\u533a\u522b\u5728\u4e8e\u5e95\u5c42\u7684\u64cd\u4f5c\u7cfb\u7edf<\/strong>\u3002\u4ee5\u4e0b\u662f\u6bcf\u79cd\u7c7b\u578b\u7684\u4ecb\u7ecd<\/p>\n<div>\n<table>\n<colgroup>\n<col \/>\n<col \/>\n<col \/><\/colgroup>\n<tbody>\n<tr>\n<th colspan=\"1\" rowspan=\"1\">\n<p>\u7248\u672c<\/p>\n<\/th>\n<th colspan=\"1\" rowspan=\"1\">\n<p>\u8bf4\u660e<\/p>\n<\/th>\n<th colspan=\"1\" rowspan=\"1\">\n<p>\u793a\u4f8b<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>alpine<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Alpine Linux \u64cd\u4f5c\u7cfb\u7edf\uff0c\u5b83\u662f\u4e00\u4e2a\u72ec\u7acb\u53d1\u884c\u7248\u672c\uff0c\u76f8\u6bd4\u8f83 Debian \u64cd\u4f5c\u7cfb\u7edf\u6765\u8bf4 Alpine\uff0c\u66f4\u52a0\u8f7b\u5de7<\/p>\n<p>https:\/\/alpinelinux.org\/<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>docker pull node:alpine3.14<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>squeeze<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Debian 6<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>&nbsp;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>wheezy<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Debian 7<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>&nbsp;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>jessie<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Debian 8\uff0c\u5df2\u5b58\u6863\u7248\u672c<\/p>\n<p>https:\/\/wiki.debian.org\/DebianJessie<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>docker pull node:10.22.0-jessie<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>stretch<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Debian 9\uff0c\u5df2\u5b58\u6863\u7248\u672c<\/p>\n<p>https:\/\/wiki.debian.org\/DebianStretch<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>docker pull node:lts-stretch<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>buster<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Debian 10\uff0c\u5df2\u5b58\u6863\u7248\u672c<\/p>\n<p>https:\/\/wiki.debian.org\/DebianBuster<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>docker pull node:lts-buster<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>bullseye<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Debian 11\uff0c\u5f53\u524d\u65e7\u7684\u7a33\u5b9a\uff08oldstable\uff09\u7248\u672c<\/p>\n<p>https:\/\/wiki.debian.org\/DebianBullseye<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>docker pull node:lts-bullseye<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>full official<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u6839\u636eDockerHub\uff0c\u8fd9\u662f\u4e8b\u5b9e\u4e0a\u7684\u6807\u51c6\u955c\u50cf\uff0c\u5982\u679c\u4f60\u4e0d\u786e\u5b9a\uff0c\u4f60\u5e94\u8be5\u4f7f\u7528\u5b83\u3002<\/p>\n<p>\u8fd9\u4e9b\u955c\u50cf\u57fa\u4e8e\u6700\u65b0\u7684\u7a33\u5b9aDebian\u64cd\u4f5c\u7cfb\u7edf\u53d1\u884c\u7248\u3002 \u5f53\u6211\u8bd5\u56fe\u8ba9\u4e00\u4e2a\u9879\u76ee\u5feb\u901f\u542f\u52a8\u548c\u8fd0\u884c\u65f6\uff0c\u6211\u901a\u5e38\u4f1a\u4ece\u5176\u4e2d\u7684\u4e00\u4e2a\u5f00\u59cb\uff0c\u6211\u5e76\u4e0d\u5173\u5fc3\u6700\u7ec8\u955c\u50cf\u7684\u5927\u5c0f\u3002\u5b8c\u6574\u955c\u50cf\u662f\u6700\u5b89\u5168\u7684\u9009\u62e9<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>&nbsp;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>slim<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>slim\u7684\u955c\u50cf\u662f\u5b8c\u6574\u955c\u50cf\u7684\u914d\u5bf9\u7248\u672c\u3002\u8fd9\u4e2a\u955c\u50cf\u901a\u5e38\u53ea\u5b89\u88c5\u8fd0\u884c\u7279\u5b9a\u5de5\u5177\u6240\u9700\u7684\u6700\u5c0f\u5305\u3002\u4ee5python\u4e3a\u4f8b\uff0c\u5c31\u662f\u8fd0\u884cpython\u7684\u6700\u5c0f\u5305\uff0cnode.js\u540c\u7406\u3002<\/p>\n<p>\u901a\u8fc7\u7701\u53bb\u8f83\u5c11\u4f7f\u7528\u7684\u5de5\u5177\uff0c\u955c\u50cf\u4f1a\u66f4\u5c0f\u3002\u5982\u679c\u6709\u7a7a\u95f4\u9650\u5236\u4e14\u4e0d\u9700\u8981\u5b8c\u6574\u7248\u672c\uff0c\u8bf7\u4f7f\u7528\u6b64\u955c\u50cf\u3002<\/p>\n<p><strong>\u4f46\u662f\uff0c\u5728\u4f7f\u7528\u8fd9\u4e2a\u955c\u50cf\u65f6\uff0c\u4e00\u5b9a\u8981\u8fdb\u884c\u5f7b\u5e95\u7684\u6d4b\u8bd5\uff01<\/strong>\u5982\u679c\u60a8\u9047\u5230\u65e0\u6cd5\u89e3\u91ca\u7684\u9519\u8bef\uff0c\u8bf7\u5c1d\u8bd5\u5207\u6362\u5230\u5b8c\u6574\u7684\u955c\u50cf\uff0c\u770b\u770b\u662f\u5426\u80fd\u591f\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>docker pull node:stretch-slim<\/p>\n<p>docker pull node:buster-slim<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>alpine<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>alipine\u955c\u50cf\u57fa\u4e8ealpine\u00a0linux\u9879\u76ee\uff0c\u8fd9\u662f\u4e00\u4e2a\u4e13\u95e8\u4e3a\u5bb9\u5668\u5185\u90e8\u4f7f\u7528\u800c\u6784\u5efa\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002\u5728\u5f88\u957f\u4e00\u6bb5\u65f6\u95f4\u91cc\uff0c\u8fd9\u4e9b\u662f\u6700\u53d7\u6b22\u8fce\u7684\u955c\u50cf\u53d8\u4f53\uff0c\u56e0\u4e3a\u5b83\u4eec\u7684\u5c3a\u5bf8\u5f88\u5c0f\u3002<\/p>\n<p>\u7136\u800c\uff0c\u4e00\u4e9b\u56e2\u961f\u6b63\u5728\u5f03\u7528alpine\u955c\u50cf\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u955c\u50cf\u53ef\u80fd\u4f1a\u5bfc\u81f4\u96be\u4ee5\u8c03\u8bd5\u7684\u517c\u5bb9\u6027\u95ee\u9898\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u5982\u679c\u4f7f\u7528python\u955c\u50cf\uff0c\u4e00\u4e9b wheels\u5c06\u88ab\u6784\u5efa\u6210\u4e0eDebian\u517c\u5bb9\uff0c\u5e76\u4e14\u9700\u8981\u91cd\u65b0\u7f16\u8bd1\uff0c\u624d\u80fd\u4e0e\u57fa\u4e8eapline\u7684\u955c\u50cf\u4e00\u8d77\u5de5\u4f5c\u3002<\/p>\n<p>\u4f7f\u7528alpine\u955c\u50cf\u7684\u4e3b\u8981\u539f\u56e0\u662f\u4f7f\u4f60\u5f97\u5230\u7684\u955c\u50cf\u5c3d\u53ef\u80fd\u5c0f\u3002\u57fa\u7840\u955c\u50cf\u5c06\u5c0f\u4e8e5MB\u3002python\u57fa\u7840\u955c\u50cf(\u5c06python\u6dfb\u52a0\u5230\u57fa\u7840alpine\u955c\u50cf)\u76ee\u524d\u662f78.9MB\u3002\u8fd9\u4ecd\u7136\u5f88\u5c0f\u3002<\/p>\n<p><strong>\u5982\u679c\u8003\u8651\u5230\u7a7a\u95f4\u95ee\u9898\uff0c\u5f3a\u70c8\u63a8\u8350\u4f7f\u7528\u6b64\u955c\u50cf\u3002<\/strong><\/p>\n<p>\u5b83\u7684\u7f3a\u70b9\u662f\u4e0d\u5305\u542b\u4e00\u4e9b\u4f60\u53ef\u80fd\u4f1a\u9700\u8981\u7684\u5305\u3002\u4e3b\u8981\u662f\uff0c\u5b83\u4f7f\u7528\u4e86\u4e00\u4e2a\u66f4\u5c0f\u7684musl lib\u4ee3\u66ffglibc\u3002\u5982\u679c\u60a8\u7684\u5e94\u7528\u7a0b\u5e8f\u6709\u7279\u5b9a\u7684libc\u9700\u6c42\uff0c\u60a8\u53ef\u80fd\u4f1a\u9047\u5230\u95ee\u9898\u3002<\/p>\n<p>\u5982\u679c\u4f60\u53d1\u73b0Alpine\u955c\u50cf\u7f3a\u5c11\u4f60\u9700\u8981\u7684\u4e1c\u897f\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u5728Dockerfile\u4e2d\u5b89\u88c5\u5b83\uff0c\u8fd9\u6837\u80fd\u786e\u4fdd\u955c\u50cf\u53ea\u5305\u542b\u4f60\u9700\u8981\u7684\u5185\u5bb9\u3002\u9700\u8981\u6ce8\u610f\uff0c\u5982\u679c\u60a8\u6b63\u5728\u5b89\u88c5\u5916\u90e8\u5305\uff0c\u60a8\u7684Dockerfile\u5c06\u4f1a\u66f4\u6539\u3002\u4e3b\u8981\u7684\u533a\u522b\u662f\uff0c\u60a8\u5c06\u4f7f\u7528apk\u800c\u4e0d\u662fapt-get\u6765\u5b89\u88c5\u5305\u3002<\/p>\n<p>\u5bf9alpine\u955c\u50cf\u7684\u4f7f\u7528\u6709\u5f88\u591a\u62c5\u5fc3\u4e4b\u5904\uff0c\u6240\u4ee5\u4f60\u9700\u8981\u5145\u5206\u4e86\u89e3\u5b83\u3002\u9700\u8981\u5145\u5206\u9605\u8bfb\u6587\u6863\u5e76\u7814\u7a76\u3002 \u540c\u6837\uff0c\u5982\u679c\u60a8\u5728\u6784\u5efaDockerfile\u65f6\u9047\u5230\u4e86\u65e0\u6cd5\u89e3\u91ca\u7684\u95ee\u9898\uff0c\u8bf7\u5c1d\u8bd5\u5207\u6362\u5230\u5b8c\u6574\u7684\u955c\u50cf\uff0c\u770b\u770b\u662f\u5426\u80fd\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\u00a0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u679c\u60a8\u50cf\u6211\u4e00\u6837\uff0c\u7b2c\u4e00\u6b21\u521b\u5efaDockerfile\u5e76\u4eceDockerHub\u9875\u9762\u4e2d\u9009\u62e9\u955c\u50cf\u65f6\uff0c\u60a8\u4f1a\u5f7b\u5e95\u56f0\u60d1\u3002\u6709\u65f6\u5019\uff0c\u50cf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":13359,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[68],"tags":[],"content_type":[],"class_list":["post-13358","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-zzjy"],"_links":{"self":[{"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=\/wp\/v2\/posts\/13358","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13358"}],"version-history":[{"count":0,"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=\/wp\/v2\/posts\/13358\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=\/wp\/v2\/media\/13359"}],"wp:attachment":[{"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13358"},{"taxonomy":"content_type","embeddable":true,"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcontent_type&post=13358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}