I need somehow specify in PHP on MySQL which is in Dockere. All this happens on Gentoo, I'm a beginner, so please write in detail, thanks!

Too common question -read the instructions, smoke manuals.

Daniel Protopopov2021-09-14 12:04:46

Try so Docker PS Display a list of containers, Docker Inspect The name of the desired container is found in the list of an IP assigned to the container, configure the connection to this IP in PHP

ipatev_nn2021-09-14 12:12:12