title: How to start mysql server in docker container
body: <p>I am creating docker container and base image is ubuntu:14.04. I have to start mysql server in that container and then I have to create databases and I have to give the permission to the users. Docker is new for me. I tried a lot but still whenever I go to that image and check for mysql server is running or not. Every time what I got is mysql server is stopped and my dbs are also not created.
  This is my dockerfile </p>
  
  <pre><code>FROM ubuntu:14.04
  MAINTAINER &lt;name&gt; &lt;emailid&gt;
  RUN sudo apt-get update
  RUN sudo apt-get install -y apache2 mysql-server libapache2-mod-auth-mysql php5-mysql php5 git
  RUN sudo apt-get install -y vim
  CMD sudo /usr/sbin/mysqld -u mysql
  </code></pre>
  
  <p>I tried a lot but i am not able to run mysql server in docker image.</p>