If you already have a MySQL database server running, make sure you don’t just replace the image with mariadb, but export the current databases and import it into mariadb if you can’t or don’t want to recreate the data in the other container an other way. If you want to use older versions of MySQL or at least a compatible database engine, you can try MariaDB if you can find out which version was compatible with MySQL 5.7. Older images in the mysql repository (or possibly MySQL itself) did not support ARM architecture. To build a Linux/AMD/Intel image on your M1 mac workstation, run the following. It allows you to create images for different CPUs. ![]() One or all might work for you, just try them: . Adminer is available for MySQL, MariaDB, PostgreSQL, SQLite, MS SQL, Oracle, Elasticsearch, MongoDB and others via plugin. If you run Docker Workstation on an M1 mac, you can leverage the Docker Workstation multi-CPU architecture support, which includes the buildx command. There are multiple hosts for some reason. MySQL official Docker image is not available for Apple ARM-based M1 and M2 CPUs. It will be an emulation so it will run slower and sometimes, since emulation is not perfect, it will not work at all. Luckily Docker has made a couple of hosts we can use that proxy to our localhost. I got into the same problem once moved to a M1 machine. If it doesn’t, it will either not run or you use the platform option to emulate one of the supported architectures by the image. You don’t need the platform option if the image supports the architecture of your CPU. ![]() ![]() However, the problem is probably not the platform, since I guess Docker recognized x86_64 as an alias of amd64 and pulled the right image. Linux/x86_64 is not one of those, but the other name of x86_64 is amd64 which is there. You can find the supported platforms for each tag here:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |