Docker Community Forums

Share and learn in the Docker community.

--privileged flag broke mysql

docker

(Dechun94) #1

I am trying to build a docker image for a development environment. In my docker image, I have installed both gdb and MySQL servers. In order to use gdb with QT to debug my program, I need to run Docker in --privileged mode. However, when I trying to start MySQL servers by using /etc/init.d/mysql start
, it gives me an error message
mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 13 - Permission denied) mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
If I remove --privileged, MySQL can start with no problem, but gdb with QT will hang and will have an error message " gdb no responding".
Does anyone have any idea to make mysql start with --privileged?


(Himani1910) #2

I am facing the same issue. Did you get any solution to run mysql server with privileged mode?