Skip to content
This repository has been archived by the owner on May 1, 2019. It is now read-only.

MySQL shouldn't be started as root. #64

Closed
wants to merge 1 commit into from
Closed

MySQL shouldn't be started as root. #64

wants to merge 1 commit into from

Conversation

isholgueras
Copy link

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.

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.
@mglaman
Copy link
Owner

mglaman commented Feb 26, 2017

@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 added a commit that referenced this pull request Feb 26, 2017
As reported in #55, and partially addressed in #64.
@mglaman
Copy link
Owner

mglaman commented Feb 26, 2017

Picking this up in #67

@mglaman mglaman closed this Feb 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants