Skip to content
This repository was archived by the owner on Nov 8, 2019. It is now read-only.
This repository was archived by the owner on Nov 8, 2019. It is now read-only.

[fedora/mariadb] can't create database directory '/var/lib/mysql/data/mysql #257

@bitchecker

Description

@bitchecker

i'm trying to run docker image fedora/mariadb with a simple directory mount for store dbms data.

i run

docker run -d --name db01 -p 3306:3306 -v /path/dbms/db01:/var/lib/mysql/data fedora/mariadb

but i see that container doesn't start and if i run docker logs db01 i see:

Fatal error can't create database directory '/var/lib/mysql/data/mysql'
mkdir: cannot create directory '/var/lib/mysql/data/mysql': Permission Denied

host directory has the same permissions of the user that is trying to run the container.

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