remove skip-name-resolve in default cmd

This commit is contained in:
Asif Bacchus 2020-11-28 04:23:47 -07:00
parent da7f429253
commit 48839acb8e
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ RUN mkdir -p /docker-entrypoint-preinit.d \
# set entrypoint and default command
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
CMD [ "/usr/bin/mysqld", "--user=mysql", "--console", "--skip-name-resolve" ]
CMD [ "/usr/bin/mysqld", "--user=mysql", "--console" ]
# add build date and version labels
ARG BUILD_DATE

View File

@ -164,7 +164,7 @@ printf "(mySQL root password: %s)\n\n" "$MYSQL_ROOT_PASSWORD"
case "$1" in
-*)
# param starts with '-' --> assume mysqld parameter(s) and append to CMD
set -- /usr/bin/mysqld --user=mysql --console --skip-name-resolve "$@"
set -- /usr/bin/mysqld --user=mysql --console "$@"
printf "\nExecuting: %s\n" "$*"
exec "$@"
;;