Home > Database > Mysql Tutorial > How to Resolve 'No Matching Manifest for MySQL on Docker Apple Silicon'?

How to Resolve 'No Matching Manifest for MySQL on Docker Apple Silicon'?

Patricia Arquette
Release: 2024-12-03 04:35:15
Original
851 people have browsed it

How to Resolve

Workaround for "No Matching Manifest for MySQL on Docker Apple Silicon Preview (ARM64)"

When running custom Docker containers on Docker Apple Silicon Preview, users may encounter an error while pulling the MySQL image:

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

Problem:

This error occurs because the latest MySQL does not have a pre-built ARM64 image available.

Solution:

While the issue cannot be directly resolved (there is no ARM64 MySQL image available yet), there are two workarounds:

1. Use Platform Override:

Override the platform to x86_64 in the Docker Compose YAMl file:

services:
  db:
    platform: linux/x86_64
    image: mysql:5.7
    ...
Copy after login

2. Use MariaDB as a Substitute:

MariaDB can be used as a drop-in replacement for MySQL:

services:
  db:
    image: mariadb:10.5.8
    ...
Copy after login

Both workarounds have been tested and confirmed to work on the Docker Apple Silicon Preview with M1 ARM64 architecture.

The above is the detailed content of How to Resolve 'No Matching Manifest for MySQL on Docker Apple Silicon'?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template