Created
September 3, 2016 07:39
-
-
Save toniher/e465a45c4406d0e6c5123cf83403010b to your computer and use it in GitHub Desktop.
Example of changing uid and gid of a Docker image - MariaDB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mariadb:10.1 | |
# To be changed here | |
ENV MYSQL_UID 27 | |
ENV MYSQL_GID 27 | |
RUN usermod -u $MYSQL_UID mysql; groupmod -g $MYSQL_GID mysql; | |
RUN chown -R mysql:mysql /var/lib/mysql /var/run/mysqld |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment