From 48839acb8ec942a57363dae9a0c7f305c1b8adcf Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sat, 28 Nov 2020 04:23:47 -0700 Subject: [PATCH] remove skip-name-resolve in default cmd --- Dockerfile | 2 +- entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 78882f3..1965571 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/entrypoint.sh b/entrypoint.sh index a4451eb..44baa83 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 "$@" ;;