Docker (Apple Silicon/M1 Preview) MySQL "no matching manifest for linux/arm64/v8 in the manifest list entries"

Cover Image for Docker (Apple Silicon/M1 Preview) MySQL "no matching manifest for linux/arm64/v8 in the manifest list entries"
Matheus Mello
Matheus Mello
published a few days ago. updated a few hours ago

🐳🍎 Docker (Apple Silicon/M1 Preview) MySQL "no matching manifest for linux/arm64/v8 in the manifest list entries"

Are you using the Docker Apple Silicon Preview on your M1-powered Mac to create containers, but encountering an error when pulling the MySQL image? Don't worry, you're not alone. Many users have faced the same issue, and we're here to help you troubleshoot it!

The Error: "no matching manifest for linux/arm64/v8 in the manifest list entries"

When running Docker Compose and attempting to pull the MySQL image, the following error message appears:

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

Understanding the Problem

This error indicates that Docker is unable to find a suitable version of the MySQL image for the architecture of your M1-based Mac (arm64). It occurs because the official MySQL Docker image doesn't currently support the arm64 architecture.

Easy Solutions

We've got a few solutions for you to work around this issue:

1. Use Alternative MySQL Images

Instead of relying on the official MySQL image, you can use alternative MySQL images that support the arm64 architecture. Try replacing mysql-server:5.7 in your YAML file with one of these alternatives:

  • Percona: An open-source alternative to MySQL

  • MariaDB: A community-developed, backward-compatible replacement for MySQL

Be sure to choose an image that matches your desired MySQL version.

2. Build a Custom MySQL Image

If you're comfortable with Dockerfile and want to customize your MySQL environment, you can build a custom MySQL image that supports the arm64 architecture. Here's an example Dockerfile to get you started:

FROM arm64v8/mysql:5.7
# Add any custom configuration or setup steps here

Save the above code in a file named Dockerfile, and then update the image line in your YAML file to:

image: your-custom-mysql-image:tag

Replace your-custom-mysql-image:tag with the name and tag you want to use for your custom MySQL image.

3. Wait for Official Support

As Docker and MySQL continue to evolve, it's likely that official support for the arm64 architecture will arrive. Keep an eye on future updates and official announcements. In the meantime, you can use the above workarounds to get MySQL up and running on your M1 Mac.

Compelling Call-to-Action

We hope this guide helps you overcome the "no matching manifest" error when pulling the MySQL image on your M1 Mac using Docker Apple Silicon Preview. Don't let this hiccup discourage you from exploring the possibilities of Docker on your new Mac!

If you found this guide helpful or have any other Docker-related questions, feel free to leave a comment below. Share this post with others who might be facing the same issue and spread the Docker love! 🐳❤️

Happy Dockerizing!


More Stories

Cover Image for How can I echo a newline in a batch file?

How can I echo a newline in a batch file?

updated a few hours ago
batch-filenewlinewindows

🔥 💻 🆒 Title: "Getting a Fresh Start: How to Echo a Newline in a Batch File" Introduction: Hey there, tech enthusiasts! Have you ever found yourself in a sticky situation with your batch file output? We've got your back! In this exciting blog post, we

Matheus Mello
Matheus Mello
Cover Image for How do I run Redis on Windows?

How do I run Redis on Windows?

updated a few hours ago
rediswindows

# Running Redis on Windows: Easy Solutions for Redis Enthusiasts! 🚀 Redis is a powerful and popular in-memory data structure store that offers blazing-fast performance and versatility. However, if you're a Windows user, you might have stumbled upon the c

Matheus Mello
Matheus Mello
Cover Image for Best way to strip punctuation from a string

Best way to strip punctuation from a string

updated a few hours ago
punctuationpythonstring

# The Art of Stripping Punctuation: Simplifying Your Strings 💥✂️ Are you tired of dealing with pesky punctuation marks that cause chaos in your strings? Have no fear, for we have a solution that will strip those buggers away and leave your texts clean an

Matheus Mello
Matheus Mello
Cover Image for Purge or recreate a Ruby on Rails database

Purge or recreate a Ruby on Rails database

updated a few hours ago
rakeruby-on-railsruby-on-rails-3

# Purge or Recreate a Ruby on Rails Database: A Simple Guide 🚀 So, you have a Ruby on Rails database that's full of data, and you're now considering deleting everything and starting from scratch. Should you purge the database or recreate it? 🤔 Well, my

Matheus Mello
Matheus Mello