remove skip-name-resolve in default cmd
This commit is contained in:
parent
da7f429253
commit
48839acb8e
@ -50,7 +50,7 @@ RUN mkdir -p /docker-entrypoint-preinit.d \
|
|||||||
|
|
||||||
# set entrypoint and default command
|
# set entrypoint and default command
|
||||||
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
|
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
|
# add build date and version labels
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
|
@ -164,7 +164,7 @@ printf "(mySQL root password: %s)\n\n" "$MYSQL_ROOT_PASSWORD"
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
-*)
|
-*)
|
||||||
# param starts with '-' --> assume mysqld parameter(s) and append to CMD
|
# 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" "$*"
|
printf "\nExecuting: %s\n" "$*"
|
||||||
exec "$@"
|
exec "$@"
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user