Docker inside the environment, mysql connection to the database when the error: No such file or directory, how to solve?

:win10
:docker
mysql:5.7

$con = mysqli_connect("127.0.0.1","root","root");
var_dump(mysqli_connect_error());
:string(18) "Connection refused" 

$con2 = mysqli_connect("localhost","root","root");
var_dump(mysqli_connect_error());
:string(25) "No such file or directory"

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b375ef-e5da.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b375ef-e5da.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?