<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">I am new on centos, I was in Ubuntu and my friend &quot;yograterol convinced me to go over to Fedora was the best.  </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Change many things, the problem is that mysql does not start in docker, in my local fedora was the same, but in Docker did not work, no commands are: </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"># mysql </div><div style="font-family:arial,sans-serif;font-size:13px">ERROR 2002 (HY000): Can not connect to local MySQL server through socket &#39;/var/lib/mysql/mysql.sock&#39; (2) </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Local fix it as follows: </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">$ sudo setenforce 0 </div><div style="font-family:arial,sans-serif;font-size:13px">$ sudo service mysqld start </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">But in Docker, out the following: </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"># setenforce 0 </div><div style="font-family:arial,sans-serif;font-size:13px">bash: setenforce: command not found </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"># Service mysqld start </div><div style="font-family:arial,sans-serif;font-size:13px">bash: service: command not found </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">It happens in the Docker: Centos and Fedora. </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I think it&#39;s because they are minimum operating system images.</div><div><br></div>-- <br><div dir="ltr"><font face="arial, helvetica, sans-serif"><img src="https://lh4.googleusercontent.com/-dW3wnR_9tgs/AAAAAAAAAAI/AAAAAAAAAAA/GrzodgWCPlc/s96-c/photo.jpg">  <span style="font-size:large"><b>Diego Alonso Uribe Gamez</b></span><span style="border-collapse:collapse"><hr style="font-style:normal;font-weight:400"><p align="center" style="font-style:normal;font-weight:400;margin:0px;text-indent:0px"></p></span></font><p style="text-align:left;font-style:normal;margin:0px;text-indent:0px"><font face="arial, helvetica, sans-serif"><span style="color:rgb(0,0,0)"><b>Desarrollador web</b></span></font></p><p style="text-align:left;font-style:normal;margin:0px;text-indent:0px"><font face="arial, helvetica, sans-serif"><span style="color:rgb(0,0,0)">Twitter: </span><span style="text-decoration:underline;color:rgb(21,0,255)"><a href="http://www.twitter.com/DiegoUG" style="color:rgb(0,0,204)" target="_blank">@DiegoUG</a></span></font></p><p style="text-align:left;margin:0px;text-indent:0px"><font face="arial, helvetica, sans-serif" style="font-style:normal">Google+: </font><font face="arial, helvetica, sans-serif"><a href="https://plus.google.com/+DiegoAlonsoUribeGamez" target="_blank">+DiegoAlonsoUribeGamez</a></font></p><hr style="font-style:normal"><br><p></p><span style="border-collapse:collapse"><p align="center" style="font-style:normal;font-weight:400;margin:0px;text-indent:0px;font-family:&#39;dejavu serif&#39;;font-size:medium;color:rgb(0,0,0)"></p></span></div>
</div>