yobasystems / alpine-mariadb

MariaDB running on Alpine Linux [Docker]
https://hub.docker.com/r/yobasystems/alpine-mariadb/
237 stars 71 forks source link

Docker-Compose Mapped volumes in host uid=systemd-timesync / gp=input. Backups with root pwd fails. #4

Closed IoTPlay closed 6 years ago

IoTPlay commented 6 years ago

Hi, by starting up the MAriaDB with a docker-compose, and mapping a folder on the docker host where the db is to be stored, it runs, but the host folders ownership changes, to systemd-timesync / input.

the result of this is that I cannot backup the db with mysqldump command with root, as it does not have rights to the folder where the DB is now mounted.

Others reports the same problem on other docker images, with several fixes. This guy proposes to do a chmod after creation of the volume, or adding another user for the docker mariadb client.

Am I doing something wrong, or is this something you could add?

Thank you for a great image !

dominictayloruk commented 6 years ago

I'll have to take a closer look at this.

dominictayloruk commented 6 years ago

This is because you have host id & container id conflicts