
vendor/bin/sail up is not working anymore "Docker is not running", from what I checked on Laravel page, I need WSL2.ĭocker-compose.yml (generated by Laravel Sail) version: '3'Ĭontext. This works fine natively on MacOS without using Docker at all. The migrations I need to run are just a bunch of CREATE and ALTER statements (probably in the hundreds). Slow MySQL performance in Docker container on MacOS I have a Java application which imports a very large amount of XML data and writes it to a MySQL database.

This is the first time Ive ever used Docker, but Im both disappointed and confused by it. When we skim through the output lines, we can see that they form the new layers in each step on top of the MySQL image. Im running some MySQL migrations on a Docker container. To bring up the MySQL container, we need to execute docker-compose up.

A MySQL database is a common requirement for web-based software.
#Docker mysql slow how to#
For an existing project where I tried Sail to run on Docker, it takes ~7sec instead of 0.3 as it takes on Laravel Homestead. DevOps Docker How to Run MySQL In A Docker Container James Walker May 20, 2021, 6:00 am EDT 4 min read Docker containers let you quickly spin up new applications without polluting your system with dependencies.

#Docker mysql slow windows#
(contains WSL2), and the index page is loaded in 2sec. CHALLENGE: Incorrectly configured Docker on Windows leads to slow Docker performance SOLUTION: Run Docker Windows from Ubuntu 20. I tried to run a fresh Laravel 9.2 project with Laravel Sail in Docker.
