V
V
vrazbros2019-06-21 20:35:16
Docker
vrazbros, 2019-06-21 20:35:16

How to solve database access problem in docker?

I don’t understand why periodically there is a problem with accessing the database in the docker,
there are several containers with the database, I start everything ok, I stopped working,
I go into another container, there are problems with the database ,
the error is this:

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name does not resolve

you have to delete the database that is forwarded to the host machine through volumes, start and roll the dump
if you stop and return to the first project, then the same problem arises there

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
taliano, 2019-06-22
@taliano

Dockerfile and connection string to studio

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question