Docker容器中的mysql_install_db返回错误

我创build了具有以下内容的Dockerfile:

FROM ubuntu:latest RUN apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y nano curl apache2 mysql-server-5.6 php5-mysql php5 libapache2-mod-php5 php5-mcrypt php5-intl php5-gd php5-imagick php5-curl EXPOSE 80 

我build立它并运行容器。 当我尝试在容器中运行mysql_install_db时,出现错误:

 FATAL ERROR: Could not find my-default.cnf 

当我通过命令service mysql start运行mysql service mysql start ,我得到消息:

 * Starting MySQL database server mysqld. No directory, logging in with HOME=/ [OK] * Checking for tables which need an upgrade, are corrupt or were not closed cleanly. 

如果我使用MySQL 5.5,它可以正常工作,没有任何错误。

我做错了什么?