https://github.com/docker-library/mariadb/tree/master/10.4
docker-entrypoint.sh 직접수정
변경전 : find "$DATADIR" \! -user mysql -exec chown mysql '{}' +
변경후 " find "$DATADIR" ! \( -path '*/.*' -prune \) \! -user mysql -exec chown mysql '{}' +
Dockerfile 수정
RUN sed -i 's/find \"$DATADIR\"/find "$DATADIR" ! \\\( -path "\*\/.\*" -prune \\\) /g' /usr/local/bin/docker-entrypoint.sh
728x90
댓글