title: Can't delete mysql database, table or even alter table inside docker
body: <p>I want to have a mysql database with some basic dataset.
  I create mysql docker image using this <a href="https://index.docker.io/u/brice/mysql/" rel="nofollow">https://index.docker.io/u/brice/mysql/</a> Dockerfile, but delete <code>VOLUME ["/var/lib/mysql", "/var/log/mysql"]</code> line, so the Dockerfile looks like:</p>
  
  <pre><code>FROM ubuntu:12.10
  MAINTAINER Brandon Rice &lt;brice84@gmail.com&gt;
  RUN dpkg-divert --local --rename --add /sbin/initctl
  RUN ln -s /bin/true /sbin/initctl
  RUN apt-get update
  RUN apt-get upgrade -y
  RUN apt-get -y install mysql-server
  RUN sed -i -e"s/^bind-address\s*=\s*127.0.0.1/bind-address = 0.0.0.0/" /etc/mysql/my.cnf
  RUN /usr/bin/mysqld_safe &amp; \
      sleep 10s &amp;&amp; \
      mysql &lt; create_my_db.sql &amp;&amp; \
      mysql -e "GRANT ALL ON *.* to 'root'@'%'; FLUSH PRIVILEGES" 
  
  EXPOSE 3306
  CMD ["mysqld_safe"]
  </code></pre>
  
  <p>After that I build image such as:</p>
  
  <pre><code>docker build -t my_db_mysql .
  </code></pre>
  
  <p>Everything is ok while i append data, but when i want to delete db, for example:</p>
  
  <pre><code>FROM my_db_mysql
  RUN /usr/bin/mysqld_safe &amp; \
      sleep 10s &amp;&amp; \
      mysql -e "DROP DATABASE my_db;" 
  EXPOSE 3306
  CMD ["mysqld_safe"]
  </code></pre>
  
  <p>I obtain next error:</p>
  
  <pre><code>ERROR 6 (HY000) at line 1: Error on delete of './my_db//db.opt' (Errcode: 1)
  </code></pre>
  
  <p>It is appears not only when I want to build image, but even when I exec: <code>mysql -u user -p -e "DROP DATABASE my_db;"</code>
  How to solve this?
  Thanks</p>
  
  <p>Update: Also I tried to run docker with different filesystem, e.g -s vfs or -s devicemapper, but nothing changed.
  When I build image with <code>VOLUME ["/var/lib/mysql", "/var/log/mysql"]</code> - everything works properly, but i can't commit this changes.<br>
  Update: Seems I resolve this issue. Problem was in host machine with ubuntu 12.04. Issue disappeared when I update ubuntu to 13.10. Thank a lot!</p>