mglaman / platform-docker

Local development tool for PHP platforms using Docker Compose
GNU General Public License v2.0
46 stars 16 forks source link

MySQL shouldn't be started as root. #64

Closed isholgueras closed 7 years ago

isholgueras commented 7 years ago

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 as mysql user.

mglaman commented 7 years ago

@isholgueras the PR got messed up when you re-forked, also we need to modify the docker-compose.yml

https://github.com/mglaman/platform-docker/blob/develop/src/Docker/ComposeContainers.php#L83

'command' => 'mysqld --user=root --verbose',

remote --user=root

Also, this means tests are broken as they aren't asserting that the containers are running.

mglaman commented 7 years ago

Picking this up in #67