ERROR: No Matching Manifest For linux/arm64/v8 Apple Mac M1 Docker MySql and Laravel

- Andrés Cruz

En español
ERROR: No Matching Manifest For linux/arm64/v8 Apple Mac M1 Docker MySql and Laravel

This error can happen in multiple contexts but this post is going to deal with the specific case of a Mac with M1 from Apple Silicon in which we try to run an app in Laravel with Laravel Sail and Docker and MySQL; in this scenario, you might get the above error; to solve it, nothing could be easier, just place the option platform: 'linux/amd64' in your docker-compose.yml file:

    mysql:
       image: 'mysql:8.0'
       platform: 'linux/amd64'

And then run again your:

./vendor/bin/sail up

To lift your app

I leave you more links here in which they propose other solutions in case the previous one does not work for you:

  1. https://stackoverflow.com/questions/67948804/no-matching-manifest-error-when-using-sail-on-laravel
  2. https://github.com/laravel/framework/issues/38370
  3. https://onexlab-io.medium.com/apple-m1-chip-no-matching-manifest-for-linux-arm64-v8-docker-mysql-5142060a9309
Andrés Cruz

Desarrollo con Laravel, Django, Flask, CodeIgniter, HTML5, CSS3, MySQL, JavaScript, Vue, Android, iOS, Flutter

Andrés Cruz en Udemy

Acepto recibir anuncios de interes sobre este Blog.