Public Repository

Last pushed: 6 months ago
Short Description
mysql image customized to use shared disk volume usage Mac OS X
Full Description

On OS X, a shared docker data volume will be unwritable by mysql user, given default uids, meaning we won’t be able to use a shared docker data volume for db storage as it fails the writability test during startup. So we modify the uid. See https://github.com/boot2docker/boot2docker/issues/581

Base

  • mysql:5.6

Dockerfile

FROM mysql:5.6
MAINTAINER apotek
EXPOSE 3306
RUN apt-get update && apt-get -y upgrade
# On OS X, a shared docker data volume will be unwritable
# by mysql user, given default uids, meaning we won’t be able
# to use a shared docker data volume for db storage as it fails the 
# mysql user writability test during startup. So we modify the uid
# See https://github.com/boot2docker/boot2docker/issues/581
RUN usermod -u 1000 mysql
RUN chown -R mysql:mysql /var/run/mysqld
Docker Pull Command
Owner
apotek

Comments (0)