From 388f002d16cf9f59809609e52eed185802a48ecb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ignacio=20S=C3=A1nchez?= Date: Sun, 26 Feb 2017 09:19:15 +0100 Subject: [PATCH] MySQL shouldn't be started with root. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When starting the docker compose, in Ubuntu 16.04, mysql container exits with code 1 because of: ``` mariadb_1  | Cannot change ownership of the database directories to the 'root' ``` The service should be started with `mysql` user. --- resources/conf/mysql.cnf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/conf/mysql.cnf b/resources/conf/mysql.cnf index 591d91a..b5713a7 100644 --- a/resources/conf/mysql.cnf +++ b/resources/conf/mysql.cnf @@ -8,7 +8,7 @@ socket = /var/run/mysqld/mysqld.sock nice = 0 [mysqld] -user = root +user = mysql pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306