<legend id='RJTO4'><style id='RJTO4'><dir id='RJTO4'><q id='RJTO4'></q></dir></style></legend>

<small id='RJTO4'></small><noframes id='RJTO4'>

      • <bdo id='RJTO4'></bdo><ul id='RJTO4'></ul>
      <i id='RJTO4'><tr id='RJTO4'><dt id='RJTO4'><q id='RJTO4'><span id='RJTO4'><b id='RJTO4'><form id='RJTO4'><ins id='RJTO4'></ins><ul id='RJTO4'></ul><sub id='RJTO4'></sub></form><legend id='RJTO4'></legend><bdo id='RJTO4'><pre id='RJTO4'><center id='RJTO4'></center></pre></bdo></b><th id='RJTO4'></th></span></q></dt></tr></i><div id='RJTO4'><tfoot id='RJTO4'></tfoot><dl id='RJTO4'><fieldset id='RJTO4'></fieldset></dl></div>

      1. <tfoot id='RJTO4'></tfoot>

        Docker (Apple Silicon/M1 Preview) MySQL“在清单列表条目中没有与 linux/ar

        时间:2023-09-18

        <i id='lplk4'><tr id='lplk4'><dt id='lplk4'><q id='lplk4'><span id='lplk4'><b id='lplk4'><form id='lplk4'><ins id='lplk4'></ins><ul id='lplk4'></ul><sub id='lplk4'></sub></form><legend id='lplk4'></legend><bdo id='lplk4'><pre id='lplk4'><center id='lplk4'></center></pre></bdo></b><th id='lplk4'></th></span></q></dt></tr></i><div id='lplk4'><tfoot id='lplk4'></tfoot><dl id='lplk4'><fieldset id='lplk4'></fieldset></dl></div>

        <small id='lplk4'></small><noframes id='lplk4'>

        <tfoot id='lplk4'></tfoot>
            <tbody id='lplk4'></tbody>

        • <legend id='lplk4'><style id='lplk4'><dir id='lplk4'><q id='lplk4'></q></dir></style></legend>
            <bdo id='lplk4'></bdo><ul id='lplk4'></ul>

                  本文介绍了Docker (Apple Silicon/M1 Preview) MySQL“在清单列表条目中没有与 linux/arm64/v8 匹配的清单"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在运行 Docker Apple Silicon Preview. 我创建了教程容器/图像,它运行良好.当我创建自定义 YAML 文件并运行 docker-compose 时,我在拉取 mysql 时出现以下错误:

                  I'm running the latest build of the Docker Apple Silicon Preview. I created the tutorial container/images and it works fine. When I went to create a custom YAML file and run docker-compose I get the following error when pulling mysql:

                  错误:清单列表条目中没有与 linux/arm64/v8 匹配的清单

                  ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries

                  这是我的 YAMl 文件中的一个片段:

                  Here is a snippet from my YAMl file:

                  version: '3'
                  
                  services:
                    # Database
                    db:
                      image: mysql-server:5.7
                      volumes:
                        - db_data:/var/lib/mysql
                      restart: always
                      environment:
                        MYSQL_ROOT_PASSWORD: pass
                        MYSQL_DATABASE: wp
                        MYSQL_USER: wp
                        MYSQL_PASSWORD: wp
                      networks:
                        - wpsite 
                  

                  我试过 :latest 和 :8 都导致同样的错误.它可以很好地拉动 phpmyadmin 和 wordpress.

                  I've tried :latest and :8 which result in the same error. It pulls phpmyadmin and wordpress fine.

                  推荐答案

                  好吧,从技术上讲它不会解决您的问题(在 ARM 上运行 MySQL),但暂时您可以添加 platform到您的服务,如:

                  Well, technically it will not solve your issue (running MySQL on ARM), but for the time being, you could add platform to your service like:

                  services:
                    db:
                      platform: linux/x86_64
                      image: mysql:5.7
                      ...
                  

                  或者,考虑使用 MariaDB,它应该可以作为替代品,例如这个:

                  Alternatively, consider using MariaDB, which should work as a drop-in replacement like e.g. this:

                  services:
                    db:
                      image: mariadb:10.5.8
                      ...
                  

                  使用 Docker 预览版在 M1 上这两种方法都对我有用

                  Both ways work for me on M1 with the Docker Preview

                  这篇关于Docker (Apple Silicon/M1 Preview) MySQL“在清单列表条目中没有与 linux/arm64/v8 匹配的清单"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:仅使用 SQL 将图片插入 SQL Server 2005 图像字段 下一篇:如何将本地托管的 MySQL 数据库与 docker 容器连接

                  相关文章

                  <i id='pDkHR'><tr id='pDkHR'><dt id='pDkHR'><q id='pDkHR'><span id='pDkHR'><b id='pDkHR'><form id='pDkHR'><ins id='pDkHR'></ins><ul id='pDkHR'></ul><sub id='pDkHR'></sub></form><legend id='pDkHR'></legend><bdo id='pDkHR'><pre id='pDkHR'><center id='pDkHR'></center></pre></bdo></b><th id='pDkHR'></th></span></q></dt></tr></i><div id='pDkHR'><tfoot id='pDkHR'></tfoot><dl id='pDkHR'><fieldset id='pDkHR'></fieldset></dl></div>

                1. <legend id='pDkHR'><style id='pDkHR'><dir id='pDkHR'><q id='pDkHR'></q></dir></style></legend>
                  1. <small id='pDkHR'></small><noframes id='pDkHR'>

                      <bdo id='pDkHR'></bdo><ul id='pDkHR'></ul>
                  2. <tfoot id='pDkHR'></tfoot>