Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

onurzdgn's avatar

Docker MySQL for Laravel

Hi everyone. My computer is Mac with intel CPU. I am developing Laravel 10 and I am using MAMP for MySQL. Latests Mac update MAMP is not working. This is the reaseon why I need MySQL in Docker. Problem is starting here. I don't know have a can do. I use this docker pull mysql in here https://hub.docker.com/_/mysql. When I try to $ docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=root -d mysql:tag this command it gives me error. The error is

Unable to find image 'mysql:tag' locally
docker: Error response from daemon: manifest for mysql:tag not found: manifest unknown: manifest unknown.
See 'docker run --help'.

How can I work with Docker?

0 likes
6 replies
eheins's avatar

Valet is indeed also a good solution, as @tray2 indicates. The disadvantage is that, if I remember correctly, you then have to deal with Homebrew for the installation which can also bring some challenges. And Laravel Herd is, as far as I know, built on top of Laravel Valet and easy to install. So you essentially end up using Valet as well.

Docker is indeed very slow on the Mac, as @tray2 points out.

onurzdgn's avatar

@eheins @tray2 thank you both. However I am using MAMP becasue it is using APACHE. I am using shared hosting. This is reason why I am using APACHE and MYSQL.

Tray2's avatar

@onurzdgn Shared hosting and Laravel isn't the best combination, unless you can update your document root, and set it to /public.

onurzdgn's avatar

@Tray2 Actually customers want this and I did you said it before. Thank you

Please or to participate in this conversation.