본문 바로가기
카테고리 없음

NAS 스토리지에 docker mariadb설치 되지 않는 이슈 해결

by Knowledge Store In Hyunsoft 2019. 5. 24.

https://github.com/docker-library/mariadb/tree/master/10.4

 

docker-library/mariadb

Docker Official Image packaging for MariaDB. Contribute to docker-library/mariadb development by creating an account on GitHub.

github.com

 

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

 

docker-entrypoint.sh

 

ww38.docker-entrypoint.sh

 

 

 

 

728x90

댓글