Skip to content

mysql fails to start since arbitrary --user values were allowed #175

Closed
@bhearsum

Description

@bhearsum

I pulled in the latest mysql image recently and found that mysqld was failing to start. After some debugging, I realized that I removed the new if block added in a6f4c23#diff-17ed820d5141a5e8565a0431e5385daeR24, mysqld started fine.

I couldn't find any additional logs when poking around the image interactively, but I did notice that mysqld was attempting to start in a loop (I'd see one pid for it, then it would disappear, then another). The only output I had was:

* Working around permission errors in Docker on Mac locally by making sure that "mysql" uses the same uid and gid as the host volume
-- Setting mysql user to use uid 0
usermod: no changes
-- Setting mysql group to use gid 0

* Starting MySQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions