Skip to content
Advertisement

Docker and Laravel 8 migrate issue

I’ve followed this tutorial docker tutorial and it is an awesome tutorial by the way. Installed an 8 Laravel version and when I tried to run PHP artisan migrate, this problem came out:

JavaScript

And I guess this is linked to Laravel 8 when running into a Docker environment.

Let’s see the docker-compose.yaml

JavaScript

The Dockerfile

JavaScript

The docker containers are up and running perfectly so what could be?

Advertisement

Answer

You need to change php version in the Dockerfile

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement