{"id":9252,"date":"2023-02-06T14:03:14","date_gmt":"2023-02-06T06:03:14","guid":{"rendered":"http:\/\/123.57.164.21\/?p=9252"},"modified":"2023-02-06T14:03:14","modified_gmt":"2023-02-06T06:03:14","slug":"%e3%80%90%e5%82%99%e5%bf%98%e9%8c%b2%e3%80%91mac-m1-%e3%83%81%e3%83%83%e3%83%97%e6%90%ad%e8%bc%89%e6%a9%9f%e3%81%ab%e3%81%a6docker-run%e3%81%8c%e5%a4%b1%e6%95%97%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=9252","title":{"rendered":"\u3010\u5099\u5fd8\u9332\u3011Mac m1 \u30c1\u30c3\u30d7\u642d\u8f09\u6a5f\u306b\u3066docker run\u304c\u5931\u6557\u3059\u308b"},"content":{"rendered":"\n<p><strong><a href=\"https:\/\/qiita.com\/watame\/items\/b8951529868f4a4cf111#%E4%BD%95%E3%81%A7%E5%9B%B0%E3%81%A3%E3%81%A6%E3%81%84%E3%81%9F%E3%81%8B\"><\/a>\u4f55\u3067\u56f0\u3063\u3066\u3044\u305f\u304b<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u958b\u767a\u74b0\u5883\u3067\u5229\u7528\u3057\u3066\u3044\u305f <code>Dockerfile<\/code> \u3092 Mac m1 \u3092\u642d\u8f09\u3057\u305f\u7b50\u4f53\u306b\u3066\u52d5\u304b\u3057\u305f\u3068\u3053\u308d\u3001\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u56f0\u3063\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">FROM mysql:8.0.2<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest sha256:8b7b328a7ff6de46ef96bcf83af048cb00a1c86282bfca0cb119c84568b4caf6: not found<\/pre>\n\n\n\n<p><strong><a href=\"https:\/\/qiita.com\/watame\/items\/b8951529868f4a4cf111#%E8%B5%B7%E5%8B%95%E6%99%82%E3%81%AB%E4%BD%95%E3%81%8C%E8%B5%B7%E3%81%93%E3%81%A3%E3%81%9F%E3%81%8B\"><\/a>\u8d77\u52d5\u6642\u306b\u4f55\u304c\u8d77\u3053\u3063\u305f\u304b<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>M1\u30c1\u30c3\u30d7\u306fARM\u306e\u30d7\u30ed\u30bb\u30c3\u30b5\u3092\u5229\u7528\u3057\u3066\u304a\u308a\u3001\u5f93\u6765\u306eDocker\u30a4\u30e1\u30fc\u30b8\u3067\u5229\u7528\u3059\u308b\u5404\u7a2e\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u524d\u63d0\u3067\u3042\u308bamd64\u7cfb\u306e\u30e1\u30e2\u30ea\u7ba1\u7406\u624b\u6cd5\u3067\u306f\u3001<code>docker run<\/code>\u3067\u8d77\u52d5\u3057\u305f\u969b\u306b\u8aad\u307f\u8fbc\u307e\u308c\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u7ba1\u7406\u304c\u3046\u307e\u304f\u52d5\u4f5c\u3057\u306a\u3044\u3053\u3068\u304c\u3042\u308b\u3002<br>\u5177\u4f53\u7684\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u304c\u3042\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cc1plus: error: unknown value 'armv8-a-march=armv8-a' for -march\ncc1plus: note: valid arguments are: armv8-a armv8.1-a armv8.2-a armv8.3-a<\/pre>\n\n\n\n<p>\u53c2\u8003\u30b5\u30a4\u30c8\u306b\u3082\u8a18\u8f09\u304c\u3042\u308b\u304c\u3001\u4e0a\u8a18\u30a8\u30e9\u30fc\u306f<code>docker pull<\/code>\u6642\u306bARM64\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u5411\u3051\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u512a\u5148\u3057\u3066\u53d6\u5f97\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u767a\u751f\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">docker pull \u6642\u306b\u3001\u6307\u5b9a\u3057\u305fDocker\u30a4\u30e1\u30fc\u30b8\u306b\u3001ARM64\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u5411\u3051\u306b\u30d3\u30eb\u30c9\u3055\u308c\u305f\u3082\u306e\u304c\u3042\u308c\u3070\u305d\u308c\u3092\u3001\u306a\u3051\u308c\u3070x86_64\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u3082\u306e\u304c\u9078\u629e\u3055\u308c\u3066pull\u3055\u308c\u307e\u3059\u3002\n<\/pre>\n\n\n\n<p><strong><a href=\"https:\/\/qiita.com\/watame\/items\/b8951529868f4a4cf111#%E5%AF%BE%E5%BF%9C%E6%96%B9%E6%B3%95\"><\/a>\u5bfe\u5fdc\u65b9\u6cd5<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u660e\u793a\u7684\u306b\u5229\u7528\u3059\u308b\u30d7\u30ed\u30bb\u30c3\u30b5\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001Mac\u306e<code>Rosetta2<\/code>\u3067\u30a8\u30df\u30e5\u30ec\u30fc\u30c8\u3057\u3066\u8d77\u52d5\u3059\u308b\u3002<\/p>\n\n\n\n<p><strong>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u306e\u8d77\u52d5\u65b9\u6cd5<\/strong><\/p>\n\n\n\n<p><code>docker run<\/code>\u3092\u884c\u3046\u969b\u306b\u3001<code>--platform=linux\/amd64<\/code>\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u4e0e\u3057\u3066\u8d77\u52d5\u3092\u884c\u3046\u3002<\/p>\n\n\n\n<p>\u4f8b\uff1aMySQL\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u7acb\u3066\u308b<\/p>\n\n\n\n<ul><li><code>docker run --platform=linux\/amd64 mysql:8.0.20<\/code><\/li><li>\u4ee5\u4e0b\u3067\u3082\u52d5\u4f5c\u3057\u307e\u3059<ul><li><code>docker run --platform=linux\/x86_64 mysql:8.0.20<\/code><\/li><\/ul><\/li><\/ul>\n\n\n\n<p><strong>Dockerfile\u304b\u3089\u306e\u8d77\u52d5\u65b9\u6cd5<\/strong><\/p>\n\n\n\n<p><code>FROM<\/code>\u53e5\u3067\u8d77\u52d5\u30a4\u30e1\u30fc\u30b8\u3092\u6307\u5b9a\u3059\u308b\u969b\u306b\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u4e0e\u3059\u308b\u3002<\/p>\n\n\n\n<ul><li>\u4f8b\uff1aMySQL\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u7acb\u3066\u308b<ul><li><code>FROM --platform=linux\/amd64 mysql:8.0.20<\/code><\/li><\/ul><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4f55\u3067\u56f0\u3063\u3066\u3044\u305f\u304b \u958b\u767a\u74b0\u5883\u3067\u5229\u7528\u3057\u3066\u3044\u305f Dockerfile \u3092 Mac m1 \u3092\u642d\u8f09\u3057\u305f\u7b50\u4f53\u306b\u3066\u52d5\u304b\u3057\u305f\u3068 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/9252"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9252"}],"version-history":[{"count":2,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/9252\/revisions"}],"predecessor-version":[{"id":9254,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/9252\/revisions\/9254"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}