{"id":322675,"date":"2021-02-05T15:21:11","date_gmt":"2021-02-05T07:21:11","guid":{"rendered":"http:\/\/4563.org\/?p=322675"},"modified":"2021-02-05T15:21:11","modified_gmt":"2021-02-05T07:21:11","slug":"m1-%e4%b8%8b%e7%9a%84-docker-%e6%98%af%e8%83%bd%e6%94%af%e6%8c%81-x86-%e7%9a%84%e9%95%9c%e5%83%8f%e5%90%a7","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=322675","title":{"rendered":"M1 \u4e0b\u7684 docker \u662f\u80fd\u652f\u6301 x86 \u7684\u955c\u50cf\u5427?"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  M1 \u4e0b\u7684 docker \u662f\u80fd\u652f\u6301 x86 \u7684\u955c\u50cf\u5427?               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : idblife <\/span>  <span><i><\/i> 1<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u8fd9\u4e2a\u7591\u95ee\u5f88\u5f3a\u70c8\u4e86<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>13<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5203701\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : InternetExplorer <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u652f\u6301\u7684\u5662\uff0c\u4eb2                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5203702\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mxT52CRuqR6o5 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u662f\u8bf4\u9760 qemu \u652f\u6301\u5fb7\u739b\uff0c\u4e0d\u8fc7\u6211\u6ca1\u7528\u8fc7\u4e5f\u4e0d\u6e05\u695a<br \/>\u5373\u4f7f\u652f\u6301\u6548\u7387\u80af\u5b9a\u5f88\u4f4e\u5c31\u662f\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5203703\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : idblife <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @InternetExplorer <br \/>\u76ee\u524d docker \u8fd8\u6ca1\u6b63\u5f0f\u9002\u914d m1,\u662f\u8bf4\u4ece\u6280\u672f\u4e0a\u6765\u8bb2,\u6b63\u5f0f\u9002\u914d\u540e\u4e5f\u65e0\u6cd5\u652f\u6301 x86 \u955c\u50cf\u5417?                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5203704\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : baiyi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u8fd8\u4ee5\u4e3a docker \u8bf4\u7684\u9002\u914d\u5c31\u662f\u6307\u7684\u8fd9\u4e2a\uff0c\u641c\u4e86\u4e00\u4e0b\uff0c\u539f\u6765\u662f\u8bf4 Docker Desktop \u7684\u9002\u914d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5203705\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : boris93 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mxT52CRuqR6o5 #2 \u6211\u8bd5\u8fc7\u5728 x86 \u670d\u52a1\u5668\u7528 qemu \u8dd1 aarch64\uff0c\u5de8\u6162                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5203706\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : idblife <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @boris93 <br \/>\u4f46\u662f\u8fd8\u662f\u80fd\u8dd1\u8d77\u6765\u5427?<br \/>\u672c\u673a\u5012\u662f\u4e0d\u8981\u6c42\u5feb,\u80fd docker build \u5c31\u884c\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5203707\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : idblife <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @InternetExplorer <br \/>\u770b\u4e86\u4e0b\u5b98\u65b9\u535a\u5ba2,\u662f ok \u7684<\/p>\n<p>Multi-Platform Baked In<\/p>\n<p>Many developers are going to experience multi-platform development for the first time with the M1 Macs. This is one of the key areas where Docker shines. Docker has had support for multi-platform images for a long time, meaning that you can build and run both x86 and ARM images on Desktop today. The new Docker Desktop on M1 is no exception; you can build and run images for both x86 and Arm architectures without having to set up a complex cross-compilation development environment.                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5203708\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : boris93 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @idblife \u5982\u679c Docker \u5e73\u53f0\u652f\u6301 M1\uff0c\u90a3\u81f3\u5c11\u8dd1\u8d77\u6765\u5e94\u8be5\u53ef\u4ee5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5203709\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nutting <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u88c5\u4e86\u652f\u6301 m1 \u7684\u9884\u89c8\u7248\uff0c\u91cd\u542f\u4e00\u6b21\u540e\u5c31\u6302\u4e86\uff0c\u63d0\u793a\u662f\u5426\u6062\u590d\u521d\u59cb\u8bbe\u7f6e\uff0c\u70b9\u4e86\u5c31\u5361\u6b7b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5203710\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liprais <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             docker \u5728 Mac \u4e0a\u7528\u7684\u865a\u62df\u673a<br \/>vm \u4e0d\u662f\u6a21\u62df\u5668                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5203711\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : idblife <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @nutting <br \/>\u6211\u53bb,\u4e00\u76c6\u51c9\u6c34&#8230;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5203712\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : idblife <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @liprais <br \/>\u6ca1\u660e\u767d\u5565\u610f\u601d\u5462                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5203713\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jybox <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u662f\u652f\u6301\u7684\uff1a<\/p>\n<p>M1 \u82af\u7247\u4e4b\u524d\u5bf9\u6211\u6765\u8bf4\u6700\u5927\u7684\u53d8\u6570\u5728\u4e8e\u5bf9 Docker \u7684\u652f\u6301\uff0c\u4f46\u5c31\u5728\u524d\u51e0\u5929 Docker for Mac \u4e5f\u53d1\u5e03\u4e86 \u9488\u5bf9 M1 \u82af\u7247\u7684\u6d4b\u8bd5\u7248\u672c\u3002\u6d4b\u8bd5\u7248\u4e2d\u9ed8\u8ba4\u4f1a\u8fd0\u884c\u4e00\u4e2a ARM \u67b6\u6784\u7684 Linux \u865a\u62df\u673a\uff0c\u9ed8\u8ba4\u8fd0\u884c linux\/arm64 \u67b6\u6784\u7684\u955c\u50cf\uff08\u8bf4\u8d77\u6765\u5728 M1 \u4e4b\u524d linux\/arm64 \u5927\u6982\u4e3b\u8981\u662f\u88ab\u7528\u5728\u6811\u8393\u6d3e\u4e0a\u5427\uff09\uff1b\u5bf9\u4e8e\u6ca1\u6709\u63d0\u4f9b linux\/arm64 \u67b6\u6784\u7684\u955c\u50cf\u5219\u4f1a\u81ea\u52a8\u4f7f\u7528 QEMU \u6765\u8fd0\u884c x64_64 \u7684\u955c\u50cf\uff0c\u6027\u80fd\u5c31\u6bd4\u8f83\u5dee\u4e86\u3002<\/p>\n<p>\u800c\u4f7f\u7528 Docker for Mac \u6784\u5efa\u955c\u50cf\u5219\u6ca1\u6709\u63d0\u5347\uff0c\u8fd9\u53ef\u80fd\u662f\u56e0\u4e3a\u6784\u5efa\u7684\u8fc7\u7a0b\u6709\u5f88\u591a\u96f6\u6563\u7684 IO\uff0cCPU \u4f1a\u6709\u6bd4\u8f83\u591a\u7684\u65f6\u95f4\u4f11\u606f\u3002\u800c\u5982\u679c\u4f7f\u7528 Docker \u53bb\u6784\u5efa x86_64 \u67b6\u6784\u7684\u955c\u50cf\u7684\u8bdd\uff0c\u6027\u80fd\u635f\u5931\u5c31\u975e\u5e38\u4e25\u91cd\u4e86\uff08-61%\uff09\u3002<\/p>\n<p>\u9488\u5bf9 M1 \u82af\u7247\u7684\u6d4b\u8bd5\u7248\u672c https:\/\/docs.docker.com\/docker-for-mac\/apple-m1\/<br \/>\u5b8c\u6574\u6d4b\u8bc4\u6587\u7ae0 https:\/\/jysperm.me\/2021\/01\/macbook-air-apple-silicon\/                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>M1 \u4e0b\u7684 docker \u662f\u80fd\u652f\u6301&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/322675"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=322675"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/322675\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=322675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=322675"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=322675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}