Laravel Sail Can't create mariadb or mysql Images?
Heyy!
This is fairly abrupt, and sorry for that, but I've been beating my head against the wall on this.
I've been trying to start a new Laravel application for work using Sail. However, one of the dependencies I'll need is mariadb, but when I run the sail up command, it says "Container project-mariadb-1 Creating" and then spits out "Error response from daemon: not a directory". The things I have read and tried are below:
According to this Stack Overflow post: [StackOverflow hostname+domain omitted due to forum rules]/a/45104143 the user fixed the issue by restarting their docker. Which I thought, running sail down and sail up should do. I also tried running docker commands manually with no success.
I have also tried destroying all associated docker images with my project in case there was a bad cache somewhere. I also deleted the docker-compose.yml file and tried to use Sail to regenerate it based on dependencies. That didn't work either.
I also destroyed the entire project directory and started a fresh Laravel install using both methods: composer commands to generate the project, then install Sail within the project directory. I also used the curl command to generate the Laravel project with Sail directly. The fresh installs state they pull the mariadb images, but running sail up can't seem to generate the containers.
I ran the sail build --no-cache command, which also did not work.
I double-checked the docker-compose.yml file and messed around with the image name that Sail pulls to see if that made a difference. It did not. ;-;
I double-checked the volume directories and those all exist also.
My senior also has no idea after looking into it. He suggested options 3, 4, and 6, which I repeated in front of him with no success. He suspects there's a problem with my PHP and/or wsl instances, which we double-checked versioning and dependencies and they all seem correct to us.
I am a junior dev, there may be something glaringly obvious about docker that I just don't understand yet also. I apologize for my inexperience.
@kev0 I am sorry to see, that there does not seem to be an issue with the docker-compose.yml.
Maybe for the others it would be helpful if you could show the whole output of sail up, so that maybe it shows any messages hinting to what seems to be the problem.
Also: What OS do you use?