Docker, I can not start mysql

DiegoUG diego.uribe.gamez at gmail.com
Wed Oct 1 23:08:54 UTC 2014


I am new on centos, I was in Ubuntu and my friend "yograterol convinced me
to go over to Fedora was the best.

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:

# mysql
ERROR 2002 (HY000): Can not connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (2)

Local fix it as follows:

$ sudo setenforce 0
$ sudo service mysqld start

But in Docker, out the following:

# setenforce 0
bash: setenforce: command not found

# Service mysqld start
bash: service: command not found

It happens in the Docker: Centos and Fedora.

I think it's because they are minimum operating system images.

-- 
  *Diego Alonso Uribe Gamez*
------------------------------

*Desarrollador web*

Twitter: @DiegoUG <http://www.twitter.com/DiegoUG>

Google+: +DiegoAlonsoUribeGamez
<https://plus.google.com/+DiegoAlonsoUribeGamez>
------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/server/attachments/20141001/66498e7e/attachment.html>


More information about the server mailing list