Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker mysql status Restarting #13

Open
yangxuehe opened this issue Nov 12, 2019 · 0 comments
Open

docker mysql status Restarting #13

yangxuehe opened this issue Nov 12, 2019 · 0 comments

Comments

@yangxuehe
Copy link

yangxuehe commented Nov 12, 2019

docker-compose up -d
执行完之后 mysql的status 总是Restasting
2cefca85bca9 mysql:8.0.13 "docker-entrypoint.s…" 3 minutes ago Restarting (1) 54 seconds ago m_mysql
执行docker logs 2cefca85bca9
如下:2019-11-12T07:28:56.019652Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.
原因是映射的/market_monitor/mysql/data/ 文件夹下有个README.md
删除后 恢复正常

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant