Skip to content

Permission error with mysql service, docker-entrypoint-initdb.d permission denied #49

@adamparker

Description

@adamparker

When running the docker-compose for the first time I hit this error.

mysql_1 | ls: cannot open directory '/docker-entrypoint-initdb.d/': Permission denied

This is due to the volume mounted from ./env/mysql into /docker-entrypoint-initdb.d/. The folders env/ and env/mysql need specific permissions but were only 700 under my username when I extracted the zip file. I changed it to 775 and it now works.

Maybe worth a doc suggestion, although I notice nobody else seems to have ran into this problem so I am curious if may just be me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions