docker mysql问题

启动出错

[root@main ~]# docker logs MysqL-first
2022-08-22 02:50:33+00:00 [Note] [Entrypoint]: Entrypoint script for MysqL Server 8.0.30-1.el8 started.
2022-08-22 02:50:33+00:00 [ERROR] [Entrypoint]: MysqLd Failed while attempting to check config
        command was: MysqLd --verbose --help --log-bin-index=/tmp/tmp.YypEkD3mA6
        MysqLd: Can't read dir of '/etc/MysqL/conf.d/' (OS errno 2 - No such file or directory)
MysqLd: [ERROR] Stopped processing the 'includedir' directive in file /etc/my.cnf at line 36.
MysqLd: [ERROR] Fatal error in defaults handling. Program aborted!

版本有问题用的MysqL image回退到MysqL:8.0.26 就可以

其它博客有提醒关闭本机MysqL服务的 使用systemctl status MysqLd.service 发现没有运行中的MysqL服务

 

相关文章

Docker是什么Docker是 Docker.Inc 公司开源的一个基于 LXC技...
本文为原创,原始地址为:http://www.cnblogs.com/fengzheng...
镜像操作列出镜像:$ sudo docker imagesREPOSITORY TAG IMA...
本文原创,原文地址为:http://www.cnblogs.com/fengzheng/p...
在 Docker 中,如果你修改了一个容器的内容并希望将这些更改...
在Docker中,--privileged 参数给予容器内的进程几乎相同的权...