title: How to resolve --initialize specified but the data directory has files in it. on laradock mysql container
body: <p>I'm using laradock.
  when I use <code>docker-compose up mysql</code>
  I got this error. </p>
  
  <pre><code>mysql_1                | Initializing database
  mysql_1                | 2018-04-22T10:41:01.362165Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
  mysql_1                | 2018-04-22T10:41:01.362585Z 0 [ERROR] Aborting
  mysql_1                |
  laradock_mysql_1 exited with code 1
  </code></pre>
  
  <p>I tried to add this setting on laradock/mysql/Dockerfile like this</p>
  
  <pre><code>ARG MYSQL_VERSION=latest
  FROM mysql:${MYSQL_VERSION}
  
  LABEL maintainer="Mahmoud Zalt &lt;mahmoud@zalt.me&gt;"
  
  #####################################
  # Set Timezone
  #####################################
  
  ARG TZ=UTC
  ENV TZ ${TZ}
  RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime &amp;&amp; echo $TZ &gt; /etc/timezone
  
  RUN chown -R mysql:root /var/lib/mysql/
  
  COPY my.cnf /etc/mysql/conf.d/my.cnf
  
  CMD ["mysqld --ignore-db-dir=lost+found"]
  
  EXPOSE 3306
  </code></pre>
  
  <p>but, I'm still getting above error.
  Do you have any idea on this solution?</p>
  
  <p>Thanks,</p>