From 6468d07ebd216f17b66bdc5e3bc8ac6ca4ca2e67 Mon Sep 17 00:00:00 2001 From: Maxim Filatov Date: Mon, 4 Jan 2016 18:21:57 +0300 Subject: [PATCH] Fixes #99 `docker-machine` and `boot2docker` in OS X with VirtualBox as backend mounts vboxsf as UID=1000, GID=50, so user with UID=1000 will have permissions to write to the data volume mounted as `-v /Users/somebody/mysqldata:/var/lib/mysql` for example. For details see: - https://github.com/boot2docker/boot2docker/issues/581 - https://github.com/boot2docker/boot2docker/issues/587#issuecomment-114868208 - https://github.com/docker/machine/issues/2660#issuecomment-167629938 --- 5.5/Dockerfile | 2 +- 5.6/Dockerfile | 2 +- 5.7/Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/5.5/Dockerfile b/5.5/Dockerfile index b44862c5f..cc40bc74e 100644 --- a/5.5/Dockerfile +++ b/5.5/Dockerfile @@ -1,7 +1,7 @@ FROM debian:jessie # add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added -RUN groupadd -r mysql && useradd -r -g mysql mysql +RUN groupadd -r mysql && useradd -u 1000 -r -g mysql mysql RUN mkdir /docker-entrypoint-initdb.d diff --git a/5.6/Dockerfile b/5.6/Dockerfile index 0b6f97bfa..6192a828a 100644 --- a/5.6/Dockerfile +++ b/5.6/Dockerfile @@ -1,7 +1,7 @@ FROM debian:jessie # add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added -RUN groupadd -r mysql && useradd -r -g mysql mysql +RUN groupadd -r mysql && useradd -u 1000 -r -g mysql mysql RUN mkdir /docker-entrypoint-initdb.d diff --git a/5.7/Dockerfile b/5.7/Dockerfile index 3eca25e6e..4c6f8ad63 100644 --- a/5.7/Dockerfile +++ b/5.7/Dockerfile @@ -1,7 +1,7 @@ FROM debian:jessie # add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added -RUN groupadd -r mysql && useradd -r -g mysql mysql +RUN groupadd -r mysql && useradd -u 1000 -r -g mysql mysql RUN mkdir /docker-entrypoint-initdb.d