diff --git a/docker/Dockerfile-centos-amd64 b/docker/Dockerfile-centos-amd64 index 29d06cfc5fa..dad4f716a6e 100644 --- a/docker/Dockerfile-centos-amd64 +++ b/docker/Dockerfile-centos-amd64 @@ -112,8 +112,8 @@ MAINTAINER StarDB ARG MYSQL_VERSION # Set up Vitess user and directory tree. +RUN groupadd --system --gid 1001 mysql && useradd --system --uid 1001 --gid 1001 mysql RUN groupadd -r vitess && useradd -r -g vitess vitess -RUN groupadd -r mysql && useradd -r -g mysql mysql RUN mkdir -p /vt/vtdataroot && chown -R vitess:vitess /vt # Set up Vitess environment (just enough to run pre-built Go binaries) diff --git a/docker/Dockerfile-openeuler-amd64 b/docker/Dockerfile-openeuler-amd64 index c9f58f09aef..1958f59b713 100644 --- a/docker/Dockerfile-openeuler-amd64 +++ b/docker/Dockerfile-openeuler-amd64 @@ -107,8 +107,8 @@ MAINTAINER StarDB ARG MYSQL_VERSION # Set up Vitess user and directory tree. +RUN groupadd --system --gid 1001 mysql && useradd --system --uid 1001 --gid 1001 mysql RUN groupadd -r vitess && useradd -r -g vitess vitess -RUN groupadd -r mysql && useradd -r -g mysql mysql RUN mkdir -p /vt/vtdataroot && chown -R vitess:vitess /vt # Set up Vitess environment (just enough to run pre-built Go binaries) diff --git a/docker/Dockerfile-openeuler-arm64 b/docker/Dockerfile-openeuler-arm64 index 51e2470a8e3..9e09849bc06 100644 --- a/docker/Dockerfile-openeuler-arm64 +++ b/docker/Dockerfile-openeuler-arm64 @@ -112,8 +112,8 @@ ARG MYSQL_VERSION RUN yum install -y shadow-utils # Set up Vitess user and directory tree. +RUN groupadd --system --gid 1001 mysql && useradd --system --uid 1001 --gid 1001 mysql RUN groupadd -r vitess && useradd -r -g vitess vitess -RUN groupadd -r mysql && useradd -r -g mysql mysql RUN mkdir -p /vt/vtdataroot && chown -R vitess:vitess /vt # Set up Vitess environment (just enough to run pre-built Go binaries)