Answer the question
In order to leave comments, you need to log in
Why does php artisan migrate throw an error with docker?
I use docker, did it laravel new blog
later php artisan migrate
and gives an error:
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known (SQL: select * from information_schema.tables where table_schema = books and table_name = migrations and table_type = 'BASE TABLE')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question